diff options
| -rw-r--r-- | challenge-026/markus-holzer/perl6/ch-2.p6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-026/markus-holzer/perl6/ch-2.p6 b/challenge-026/markus-holzer/perl6/ch-2.p6 index 68e4321c19..d4a6529a4f 100644 --- a/challenge-026/markus-holzer/perl6/ch-2.p6 +++ b/challenge-026/markus-holzer/perl6/ch-2.p6 @@ -2,8 +2,8 @@ use Test; # Rakus trigonometry functions operate on radians. So we must convert degrees to radians. # That's simple enough using a new postfix operator and high school math. -multi sub postfix:<°>( Numeric $degrees ) is looser(&prefix:<->) returns Real { $degrees * π / 180 } - +multi sub postfix:<°>( Numeric $degrees ) returns Real { $degrees * π / 180 } + # This implements the "simple" version of the algorithm as described on Wikipedia. # There already is an implementation of the complex math version (that uses `i`) # on Rosetta-Code https://rosettacode.org/wiki/Averages/Mean_angle#Perl_6 |
