A85: Trig functions


[Prev][Next][Index][Thread]

A85: Trig functions




If you want to calculate what sin(x) and cos(x) in radians here is what they approx. equal:
sin(x)=x-(x^3)/3!+(x^5)/5!-(x^7)/7!+...
cos(x)=1-(x^2)/2!+(x^4)/4!-(x^6)/6!+...
and to find the accuracy, take the next term and put the max of x into it. Ex. sin(.3) using three terms so (.3^7)/7!=4.3*10^-8
Now I will let you guys figure out the code if you want to use them.

jmh
---

ICQ UIN 6381797


Free web-based email, anytime, anywhere! 
ZDNet Mail - http://www.zdnetmail.com


Follow-Ups: