Mohan S N wrote:
> --- siva kumar <[EMAIL PROTECTED]> wrote:
> 
>> can you any body tell me how to write a sin or cos or
>> exponential series in an easy way.
>> please give me some sample programes.
> 
> I guess you want to get approximate values of sin() or cos() without
> evaluating factorials and powers. What about this?
> http://www.audiomulch.com/~rossb/code/sinusoids/
> 
> HTH,
> Regards,
> Mohan S N

If you have a background in heavy math, the entire suite of 
trigonometric functions can be closely approximated* using the Taylor 
series:

http://en.wikipedia.org/wiki/Taylor_series

Taylor series are generally taught in Calculus II courses (sometimes 
Calculus I) here in America.

That Wikipedia article is really well written.  Close to the bottom of 
the page are some formulas and expansions to get you started (for those 
who don't have a heavy math background).

* The limit at infinite expansion of a Taylor series is the exact 
calculation of the target function.  But usually just a handful of 
expansions is "good enough" as long as you keep to within some range of 
(+,-)x * PI.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to