mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
bad sin/cos for large angles.
fixes #326. R=rsc https://golang.org/cl/160059
This commit is contained in:
parent
eb33c0bb35
commit
b2bc1db9ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue