|
I know the equation for the sin in taylor series. My problem is putting it into my c++ program like i did with the cos.
this is the cos
for( i = 2; i <= 2 * N; i+= 2)
{
term = -1 * term * x* x / (i* (i-1));
sum = sum + term;
}
PLease help with the sin code of the taylor.
|