Lines Matching refs:sinh

27  * @summary Tests for {Math, StrictMath}.{sinh, cosh, tanh}
40 * Test accuracy of {Math, StrictMath}.sinh. The specified
43 * The defintion of sinh(x) is
47 * The series expansion of sinh(x) =
53 * 1. For large values of x sinh(x) ~= signum(x)*exp(|x|)/2
55 * 2. For small values of x, sinh(x) ~= x.
57 * Additionally, sinh is an odd function; sinh(-x) = -sinh(x).
63 * Array elements below generated using a quad sinh
71 // x sinh(x)
277 // overflows around 709.8, sinh(x) ~= exp(x)/2; will will test
295 // (approximately) largest value such that sinh shouldn't
299 // Make sure sinh(x) doesn't overflow as soon as exp(x)
303 * For large values of x, sinh(x) ~= 0.5*(e^x). Therefore,
305 * sinh(x) ~= e^(ln 0.5) * e^x = e^(x + ln 0.5)
344 // sinh(x) overflows for values greater than 710; in
361 failures += Tests.testTolerance("Math.sinh(double)",
362 input, Math.sinh(input),
364 failures += Tests.testTolerance("Math.sinh(double)",
365 -input, Math.sinh(-input),
368 failures += Tests.testTolerance("StrictMath.sinh(double)",
369 input, StrictMath.sinh(input),
371 failures += Tests.testTolerance("StrictMath.sinh(double)",
372 -input, StrictMath.sinh(-input),
381 failures += Tests.testUlpDiff("Math.sinh(double)",
382 input, Math.sinh(input),
384 failures += Tests.testUlpDiff("Math.sinh(double)",
385 -input, Math.sinh(-input),
388 failures += Tests.testUlpDiff("StrictMath.sinh(double)",
389 input, StrictMath.sinh(input),
391 failures += Tests.testUlpDiff("StrictMath.sinh(double)",
392 -input, StrictMath.sinh(-input),
658 // Make sure sinh(x) doesn't overflow as soon as exp(x)
780 * Array elements below generated using a quad sinh