Hi all,
I'm looking to do some simple low-level approximations of sin, atan, 2^x, and log2 x for a CPU I'm making. So far I've got a simplified MacLaurin polynomial
for sine, which seems to produce quite a good result (8 terms --> 16 decimal place accuracy at pi/2, 16 terms --> 41 dec. place, 24 terms --> 64 dec. place) with no powers past 2 and no factorials.
For arctangent, I have a similar MacLaurin polynomial, but it degenerates quickly past pi/12. Any ideas?
As far as 2^x and log2 go, I'm in the dark. Any hints would be appreciated.
Thanks!
-- Josh