mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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
This commit is contained in:
parent
c0a01e9665
commit
f379ea0b07
6 changed files with 339 additions and 146 deletions
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue