michael@0: // Properties of Math.acosh that are guaranteed by the spec. michael@0: michael@0: // If x is NaN, the result is NaN. michael@0: assertEq(Math.acosh(NaN), NaN); michael@0: michael@0: // If x is less than 1, the result is NaN. michael@0: assertEq(Math.acosh(ONE_MINUS_EPSILON), NaN); michael@0: assertEq(Math.acosh(Number.MIN_VALUE), NaN); michael@0: assertEq(Math.acosh(+0), NaN); michael@0: assertEq(Math.acosh(-0), NaN); michael@0: assertEq(Math.acosh(-Number.MIN_VALUE), NaN); michael@0: assertEq(Math.acosh(-1), NaN); michael@0: assertEq(Math.acosh(-Number.MAX_VALUE), NaN); michael@0: assertEq(Math.acosh(-Infinity), NaN); michael@0: michael@0: for (var i = -20; i < 1; i++) michael@0: assertEq(Math.acosh(i), NaN); michael@0: michael@0: // If x is 1, the result is +0. michael@0: assertEq(Math.acosh(1), +0); michael@0: michael@0: // If x is +∞, the result is +∞. michael@0: assertEq(Math.acosh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY); michael@0: michael@0: michael@0: reportCompare(0, 0, "ok");