From e568a3dc2af6a801621c5b826969ba5a2b17f05f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 20 Nov 2008 10:54:02 -0800 Subject: more accurate Log, Exp, Pow. move test.go to alll_test.go. R=r DELTA=1024 (521 added, 425 deleted, 78 changed) OCL=19687 CL=19695 --- src/lib/math/sin.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/math/sin.go') diff --git a/src/lib/math/sin.go b/src/lib/math/sin.go index 635e60d21..57de55913 100644 --- a/src/lib/math/sin.go +++ b/src/lib/math/sin.go @@ -4,6 +4,9 @@ package math +/* + Coefficients are #3370 from Hart & Cheney (18.80D). +*/ const ( p0 = .1357884097877375669092680e8; @@ -15,6 +18,7 @@ const q1 = .4081792252343299749395779e6; q2 = .9463096101538208180571257e4; q3 = .1326534908786136358911494e3; + piu2 = .6366197723675813430755350e0; // 2/pi ) -- cgit v1.2.3