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
|
|
@ -61,15 +61,14 @@ main()
|
|||
ck(exp[i], math.exp(f));
|
||||
ck(floor[i], math.floor(f));
|
||||
ck(log[i], math.log(math.fabs(f)));
|
||||
math.pow(10, f);
|
||||
ck(pow[i], math.pow(10, f));
|
||||
ck(sin[i], math.sin(f));
|
||||
ck(sinh[i], math.sinh(f));
|
||||
ck(sqrt[i], math.sqrt(math.fabs(f)));
|
||||
ck(tan[i], math.tan(f));
|
||||
ck(tanh[i], math.tanh(f));
|
||||
// ck(math.fabs(tanh[i]*math.sqrt(2)),
|
||||
// math.hypot(tanh[i], tanh[i]));
|
||||
ck(math.fabs(tanh[i]*math.sqrt(2)),
|
||||
math.hypot(tanh[i], tanh[i]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue