summaryrefslogtreecommitdiff
path: root/src/pkg/math/sin.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/sin.go')
-rw-r--r--src/pkg/math/sin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/math/sin.go b/src/pkg/math/sin.go
index 740d6778b..2c6f0079e 100644
--- a/src/pkg/math/sin.go
+++ b/src/pkg/math/sin.go
@@ -37,10 +37,10 @@ func sinus(x float64, quad int) float64 {
}
if quad&1 != 0 {
- y = 1-y;
+ y = 1-y
}
if quad > 1 {
- y = -y;
+ y = -y
}
yy := y*y;
@@ -52,7 +52,7 @@ func sinus(x float64, quad int) float64 {
// Cos returns the cosine of x.
func Cos(x float64) float64 {
if x < 0 {
- x = -x;
+ x = -x
}
return sinus(x, 1);
}