OT : Approximate / fast math libraries ?

Mike McCarty Mike.McCarty at sbcglobal.net
Tue Sep 4 23:19:16 UTC 2007


Mogens Kjaer wrote:
> Chris Jones wrote:
> ...
> 
>> for the profiler output. atan2 is taking 50% of the time of this 
>> method. Not here I don't need that much precision on the result - say 
>> +- O(2*pi/100).
> 
> 
> Can't you use a Taylor expansion of arctan?

In a word, NO. Taylor's series are TERRIBLE ways to do numerical
approximations. In effect, they make an infinitely precise estimate
at the expense of everything else. You want an approximation which
is valid over an interval.

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!




More information about the fedora-list mailing list