summaryrefslogtreecommitdiff
path: root/src/pkg/math/atan.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/atan.go')
-rw-r--r--src/pkg/math/atan.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/math/atan.go b/src/pkg/math/atan.go
index 9d4ec2f72..d424a2be4 100644
--- a/src/pkg/math/atan.go
+++ b/src/pkg/math/atan.go
@@ -51,7 +51,9 @@ func satan(arg float64) float64 {
// Special cases are:
// Atan(±0) = ±0
// Atan(±Inf) = ±Pi/2
-func Atan(x float64) float64 {
+func Atan(x float64) float64
+
+func atan(x float64) float64 {
if x == 0 {
return x
}