laziness, impatience, and hubris | |
PerlMonks |
Re^4: Perl odditiesby theorbtwo (Prior) |
on Mar 02, 2005 at 11:59 UTC ( [id://435783]=note: print w/replies, xml ) | Need Help?? |
I suspect on most CPUs, it just uses the sin and cos opcodes of the native CPU. Implementing sin in terms of cos (or vice-versa) is just asking for problems, like the well-known results being a little off, since pi/2 cannot be exactly represented as a float (or as anything else in finite RAM).
In Section
Meditations
|
|