From 41b9feadd952a0092a9dfc436ecf6b77ae8e1206 Mon Sep 17 00:00:00 2001 From: Solomon Foster Date: Tue, 16 Feb 2010 10:18:13 -0500 Subject: [PATCH] Implement acotan. --- src/core/Num.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/Num.pm b/src/core/Num.pm index a276a98e41a..5ab994fbd45 100644 --- a/src/core/Num.pm +++ b/src/core/Num.pm @@ -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); }