blob: 57b94ed225f9707ab8e36510370b4455f751bec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Properties of Math.expm1 that are guaranteed by the spec.
// If x is NaN, the result is NaN.
assertEq(Math.expm1(NaN), NaN);
// If x is +0, the result is +0.
assertEq(Math.expm1(+0), +0);
// If x is −0, the result is −0.
assertEq(Math.expm1(-0), -0);
// If x is +∞, the result is +∞.
assertEq(Math.expm1(Infinity), Infinity);
// If x is −∞, the result is -1.
assertEq(Math.expm1(-Infinity), -1);
reportCompare(0, 0, "ok");
|