Skip to content

Commit

Permalink
more Num methods that translate directly to PIR
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jun 7, 2011
1 parent eeeb5cf commit 9b86b65
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/CORE.setting/Num.pm
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,20 @@ my class Num {
multi method asec() {
pir::perl6_box_num__PN(pir::asec__NN(pir::repr_unbox_num__NP(self)));
}
proto method sinh(|$) {*}
multi method sinh() {
pir::perl6_box_num__PN(pir::sinh__NN(pir::repr_unbox_num__NP(self)));
}
proto method cosh(|$) {*}
multi method cosh() {
pir::perl6_box_num__PN(pir::cosh__NN(pir::repr_unbox_num__NP(self)));
}
proto method tanh(|$) {*}
multi method tanh() {
pir::perl6_box_num__PN(pir::tanh__NN(pir::repr_unbox_num__NP(self)));
}
proto method sech(|$) {*}
multi method sech() {
pir::perl6_box_num__PN(pir::sech__NN(pir::repr_unbox_num__NP(self)));
}
}

0 comments on commit 9b86b65

Please sign in to comment.