Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add log subs and log10 sub and method.
  • Loading branch information
colomon committed Oct 26, 2011
1 parent bacff10 commit e4121a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/CORE.setting
Expand Up @@ -182,6 +182,7 @@ my class Cool {
method ln() { Q:CgOp { (ln {self}) } }
multi method log() { self.ln }
multi method log($base) { self.ln / $base.ln }
method log10() { self.ln / 10.ln }
method sin() { Q:CgOp { (sin {self}) } }
method asin() { Q:CgOp { (asin {self}) } }
method cos() { Q:CgOp { (cos {self}) } }
Expand Down Expand Up @@ -2133,6 +2134,10 @@ sub lines($filehandle = $*IN) { $filehandle.lines }
sub prompt($msg) { print $msg; $*IN.get }
sub getc($handle) { $handle.getc }
multi sub log($x) { $x.log }
multi sub log($x, $base) { $x.log($base) }
sub log10($x) { $x.log(10) }
sub sin($x) { $x.sin }
sub asin($x) { $x.asin }
sub cos($x) { $x.cos }
Expand Down

0 comments on commit e4121a3

Please sign in to comment.