RosettaCodeData/Task/Trigonometric-functions/Raku/trigonometric-functions.raku
2023-07-01 13:44:08 -04:00

16 lines
321 B
Raku
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 20210212 Updated Raku programming solution
sub postfix:<°> (\) { × τ / 360 }
sub postfix:<㎭🡆°> (\) { / π × 180 }
say sin π/3 ;
say sin 60° ;
say cos π/4 ;
say cos 45° ;
say tan π/6 ;
say tan 30° ;
( asin(3.sqrt/2), acos(1/sqrt 2), atan(1/sqrt 3) )».&{ .say and .㎭🡆°.say }