summaryrefslogtreecommitdiff
path: root/src/pkg/math/tanh.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/tanh.go')
-rw-r--r--src/pkg/math/tanh.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/math/tanh.go b/src/pkg/math/tanh.go
index dd403a4e0..e6d4da87b 100644
--- a/src/pkg/math/tanh.go
+++ b/src/pkg/math/tanh.go
@@ -18,12 +18,12 @@ func Tanh(x float64) float64 {
if x < 0 {
x = -x;
if x > 21 {
- return -1;
+ return -1
}
return -Sinh(x) / Cosh(x);
}
if x > 21 {
- return 1;
+ return 1
}
return Sinh(x)/Cosh(x);
}