Skip to content

Commit

Permalink
Implement acotan.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Feb 16, 2010
1 parent d1cb483 commit 41b9fea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Num.pm
Expand Up @@ -154,6 +154,10 @@ augment class Num {
1 / self.tan($base);
}

multi method acotan($base = 'radians') {
(1 / self).atan($base);
}

multi method cotanh($base = 'radians') {
1 / self.tanh($base);
}
Expand Down

0 comments on commit 41b9fea

Please sign in to comment.