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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/math/tanh.go b/src/pkg/math/tanh.go
index 20dc5b79d..dd403a4e0 100644
--- a/src/pkg/math/tanh.go
+++ b/src/pkg/math/tanh.go
@@ -20,7 +20,7 @@ func Tanh(x float64) float64 {
if x > 21 {
return -1;
}
- return -Sinh(x)/Cosh(x);
+ return -Sinh(x) / Cosh(x);
}
if x > 21 {
return 1;