Documentation for routine
sin assembled from the following types:
sub sin(Numeric(Cool))method sin()
say sin(0); # OUTPUT: «0␤»say sin(pi/4); # OUTPUT: «0.707106781186547␤»say sin(pi/2); # OUTPUT: «1␤»
Note that Perl 6 is no computer algebra system, so
sin(pi) typically does not produce an exact 0, but rather a very small floating-point number.