diff options
author | Russ Cox <rsc@golang.org> | 2009-11-20 11:45:05 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-11-20 11:45:05 -0800 |
commit | c861f30835090bbd6b9b35a80667f26952843767 (patch) | |
tree | 645bd57ef3c9326ec02e646a751b9075d12a79e7 /src/pkg/math | |
parent | 7089e97992d5d6be520dfea787200061992526c8 (diff) | |
download | golang-c861f30835090bbd6b9b35a80667f26952843767.tar.gz |
gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg
R=r, gri
CC=golang-dev
http://codereview.appspot.com/156115
Diffstat (limited to 'src/pkg/math')
-rw-r--r-- | src/pkg/math/atan.go | 2 | ||||
-rw-r--r-- | src/pkg/math/sin.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/math/atan.go b/src/pkg/math/atan.go index 1582031a3..4f0ad9bf0 100644 --- a/src/pkg/math/atan.go +++ b/src/pkg/math/atan.go @@ -32,7 +32,7 @@ func xatan(arg float64) float64 { Q0 = .89678597403663861962481162e3; ) sq := arg * arg; - value := ((((P4*sq+P3)*sq+P2)*sq + P1) * sq + P0); + value := ((((P4*sq+P3)*sq+P2)*sq+P1)*sq + P0); value = value / (((((sq+Q4)*sq+Q3)*sq+Q2)*sq+Q1)*sq + Q0); return value * arg; } diff --git a/src/pkg/math/sin.go b/src/pkg/math/sin.go index adff067c2..70b7218c9 100644 --- a/src/pkg/math/sin.go +++ b/src/pkg/math/sin.go @@ -45,7 +45,7 @@ func sinus(x float64, quad int) float64 { yy := y * y; temp1 := ((((P4*yy+P3)*yy+P2)*yy+P1)*yy + P0) * y; - temp2 := ((((yy+Q3)*yy+Q2)*yy + Q1) * yy + Q0); + temp2 := ((((yy+Q3)*yy+Q2)*yy+Q1)*yy + Q0); return temp1 / temp2; } |