diff options
Diffstat (limited to 'src/pkg/math/tan.go')
-rw-r--r-- | src/pkg/math/tan.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/math/tan.go b/src/pkg/math/tan.go index 2d4a044b8..ee6dfbe40 100644 --- a/src/pkg/math/tan.go +++ b/src/pkg/math/tan.go @@ -27,7 +27,7 @@ func Tan(x float64) float64 { flag := false; sign := false; - if(x < 0) { + if x < 0 { x = -x; sign = true; } @@ -55,7 +55,7 @@ func Tan(x float64) float64 { temp = temp/(((xsq+Q2)*xsq+Q1)*xsq+Q0); if flag { - if(temp == 0) { + if temp == 0 { panic(NaN()); } temp = 1/temp; |