mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
fix ldexp, frexp, and make math package compile and test correctly
SVN=126423
This commit is contained in:
parent
4528854308
commit
41b9617be4
9 changed files with 213 additions and 214 deletions
|
|
@ -49,5 +49,5 @@ exp(arg double) double
|
|||
xsq = fract*fract;
|
||||
temp1 = ((p2*xsq+p1)*xsq+p0)*fract;
|
||||
temp2 = ((xsq+q2)*xsq+q1)*xsq + q0;
|
||||
return sys.ldexp(ent, sqrt2*(temp2+temp1)/(temp2-temp1));
|
||||
return sys.ldexp(sqrt2*(temp2+temp1)/(temp2-temp1), ent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue