Skip to content

Commit

Permalink
Rename log-e to the more traditional (yet still unspec'd and likely t…
Browse files Browse the repository at this point in the history
…o go away) ln.
  • Loading branch information
colomon committed May 7, 2010
1 parent def9f9c commit 977fad6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/core/Complex.pm
Expand Up @@ -37,7 +37,7 @@ class Complex does Numeric is Cool {
$base ** $exponent;
}

method log-e() {
method ln() {
Q:PIR {
.local pmc self
self = find_lex 'self'
Expand Down
2 changes: 1 addition & 1 deletion src/core/Num.pm
Expand Up @@ -71,7 +71,7 @@ augment class Num does Real {
# pir::exp__Nn(self);
# }

method log-e(Num $x:) {
method ln(Num $x:) {
pir::ln__Nn($x);
}

Expand Down
8 changes: 4 additions & 4 deletions src/core/Numeric.pm
Expand Up @@ -13,13 +13,13 @@ role Numeric {
fail "$.WHAT() needs a version of .exp";
}

method log-e(Numeric $x:) {
note "$.WHAT() needs a version of .log-e";
fail "$.WHAT() needs a version of .log-e";
method ln(Numeric $x:) {
note "$.WHAT() needs a version of .ln";
fail "$.WHAT() needs a version of .ln";
}

method log(Numeric $x: Numeric $base = e) {
$x.log-e / $base.log-e;
$x.ln / $base.ln;
}

method log10(Numeric $x:) {
Expand Down
4 changes: 2 additions & 2 deletions src/core/Real.pm
Expand Up @@ -14,8 +14,8 @@ role Real does Numeric {
$base ** $exponent;
}

method log-e(Real $x:) {
$x.Bridge.log-e;
method ln(Real $x:) {
$x.Bridge.ln;
}

method sign(Real $x:) {
Expand Down

0 comments on commit 977fad6

Please sign in to comment.