LOG(x), EXP(x)

Started by Jongsoo Lim February 9, 2004
Hi! Members;

My target is DSP56F805 and I am using SDK.
I need to generate c-code for log(x) and exp(x).
I tried approximation from the definition of
exp(x)=1+x+x^2/2!+x^3/3!+..., but the result looks
funny even if order of 6.
The return value for x*x/2 is 0.9999 when x=2 is defined
as float.
What am I missing?