I am trying to compare the accuracy of a finite series and product version of the $\sin(x)$ function.
I have $$\sin() = \prod_{=1}^n \left[1 − \left(\frac{}{\pi}\right)^2\right]$$ for the product function. And, $$\sin() = \sum_{k=0}^n \frac{(−1)^\cdot ^{2+1}}{(2+1)!} $$
for the series function, where $n$ in both cases is a finite value.
I put these two functions in code and compared them to a calculators sine function. It seems like the series functions requires way less terms in order to reach simple accuracy to the calculators version. While the product, took many or close to infinite terms to reach an accuracy that satisfied close to the sine function.
My question is, why is this the case? Why is the product version of sine not as accurate in comparison to the series version. Or did I make a mistake, possibly in code?