summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2009-11-24 15:01:44 -0800
committerKen Thompson <ken@golang.org>2009-11-24 15:01:44 -0800
commitdf004024b2e8c65415390f784886ae732d730ad9 (patch)
treececb46d3ce9510d8a5b2bdb172e27951ab6d580c
parent2acfb6e3ca4e67be3c2aa6c43fa70f164a2bc344 (diff)
downloadgolang-df004024b2e8c65415390f784886ae732d730ad9.tar.gz
bad sin/cos for large angles.
fixes issue 326. R=rsc http://codereview.appspot.com/160059
-rw-r--r--src/pkg/math/sin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/math/sin.go b/src/pkg/math/sin.go
index 70b7218c9..25f676355 100644
--- a/src/pkg/math/sin.go
+++ b/src/pkg/math/sin.go
@@ -28,7 +28,7 @@ func sinus(x float64, quad int) float64 {
var e float64;
e, y = Modf(x);
e = e + float64(quad);
- _, f := Modf(0.25 * e);
+ f, _ := Modf(0.25 * e);
quad = int(e - 4*f);
} else {
k := int32(x);