http://www.perlmonks.org?node_id=435783


in reply to Re^3: Perl oddities
in thread Perl oddities

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).