I am trying to get the sine12º function to approximate using the Taylor polynomial, for this I do the following:
$x = \pi/15$
$a = 0$
$f(x)=senx$ -> $ f(a)=0$
$f'(x)=cos x$ -> $ f(a)=1$
$f''(x) = -senx$ -> $ f(a)=0$
$f'''(x) = -cosx$ -> $ f(a)=-1$
$f''''(x) = senx$ -> $ f(a)=0$
$f(x) = \frac{x}{1!} - \frac{x³}{3!}+ \frac{x⁵}{5!} - \frac{x⁷}{7!} + \dots + \frac{(-1)^{n+1} x^{2n+1}}{(2n+1)!} + \frac{(-1)^{n+2} x^{2n+3} * senc}{(2n+3)!}$
$0 < c < \pi/15$
$|\frac{(-1)^{n+2} x^{2n+3} * cosc}{(2n+3)!}| < |\frac{(-1)^{n+2} x^{2n+3}}{(2n+3)!}| < 0.0001$
It would now give values to n asta to fulfill the condition
The doubt I have is that if this fraction is correct $\frac{(-1)^{n+1} x^{2n+1}}{(2n+1)!} + \frac{(-1)^{n+2} x^{2n+3} * senc}{(2n+3)!} $ since in some literature I have seen that the appropriate would be the following $\frac{(-1)^{n-1} x^{2n-1}}{(2n-1)!} + \frac{(-1)^{n} x^{2n} * senc}{(2n)!}$, and I do not understand why if $n = 0 (2*0-1)! = -1$: