I created the following on Desmos recently:
$y=\displaystyle\sum_{n=1}^{50}\sin\left(nx\right)$
While looking at it I noticed that it looks similar to $tan(x)$, so I tried to approximate it: $\sin\left(0.5\right)\left(\tan\left(-0.25x\right)\right)$
My question is why these numbers, and how can I be more accurate when plotting patterns in graphs?