Skip to content

Commit

Permalink
More Complex versions of infix:<**>.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Feb 15, 2010
1 parent 07e96ba commit 3d02e7c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core/Complex.pm
Expand Up @@ -320,9 +320,13 @@ multi sub prefix:<->(Complex $a) {
Complex.new(-$a.re, -$a.im);
}

#multi sub infix:<**>(Complex $a, $b) is default {
# ($a.log * $b).exp;
#}
multi sub infix:<**>(Complex $a, Complex $b) {
($a.log * $b).exp;
}

multi sub infix:<**>(Complex $a, $b) {
($a.log * $b).exp;
}

multi sub infix:<**>($a, Complex $b) {
($a.log * $b).exp;
Expand Down

0 comments on commit 3d02e7c

Please sign in to comment.