fix ldexp, frexp, and make math package compile and test correctly

SVN=126423
This commit is contained in:
Rob Pike 2008-07-08 17:26:10 -07:00
parent 4528854308
commit 41b9617be4
9 changed files with 213 additions and 214 deletions

View file

@ -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]));
}
}