View Single Post
Old 10-27-2005, 08:27 AM   #3 (permalink)
josh2two
Registered User
 
Join Date: Sep 2005
Posts: 22
josh2two is on a distinguished road
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.
josh2two is offline   Reply With Quote