Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Numeric.exp($base). Add "multi" to Num.exp.
  • Loading branch information
colomon committed Jul 16, 2011
1 parent d7d46e3 commit afc5299
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Num.pm
Expand Up @@ -62,7 +62,7 @@ my class Num {
nqp::p6box_n(nqp::abs_n(nqp::unbox_n(self)));
}

method exp() {
multi method exp() {
nqp::p6box_n(pir::exp__Nn(nqp::unbox_n(self)));
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/Numeric.pm
Expand Up @@ -14,7 +14,7 @@ my class Numeric {

proto method exp(|$) {*}
multi method exp(Numeric $base) {
self.exp * $base.log;
$base ** self;
}
method roots(Cool $n) { self.Complex.roots($n.Int) }
multi method Bool(Numeric:D:) { self != 0 }
Expand Down

0 comments on commit afc5299

Please sign in to comment.