approximate expf

Started by
0 comments, last by aphydx 20 years ago
does anyone have code for the macro approximation of expf (c++) .. i know it involves bit shifting & a couple of constants, but i can't find it .. .. and i'm too lazy to figure it out myself .. (edit) oh yea, it has to be single-precision .. i.e. 'float' .. not 'double' [edited by - aphydx on April 5, 2004 8:02:02 PM]
Advertisement
Taylor series for e
1 + x/1! + x^2/2!...

This topic is closed to new replies.

Advertisement