Jasmine
2.0.0
finished in 0.018s
raise exceptions
25 specs, 0 failures
Tests of sinh for exceptional values
sinh(+0) = +0
sinh(-0) = -0
sinh(Infinity) = Infinity
sinh(-Infinity = -Infinity
sinh(NaN) = NaN
Tests sinh basic functionality
sinh(2^-29) = 2^-29, case |x| < 2^-28
sinh(-2^-29) = -2^-29, case |x| < 2^-28
sinh(0.5), case |x| < 1
sinh(-0.5), case |x| < 1
sinh(10*log(2)) = 1048575/2048, case |x| < 22
sinh(-10*log(2)) = -1048575/2048, case |x| < 22
sinh(10), case |x| < 22
sinh(-10), case |x| < 22
sinh(32*Math.LN2), case |x| in [22, log(maxdouble)]
sinh(-32*Math.LN2), case |x| in [22, log(maxdouble)]
sinh(100), case |x| in [22, log(maxdouble)]
sinh(-100), case |x| in [22, log(maxdouble)]
sinh(710.4758600739439), no overflow, case |x| in [log(maxdouble), ovfthreshold]
sinh(-710.4758600739439), no overflow, case |x| in [log(maxdouble), ovfthreshold]
sinh(710.475860073944), overflow, case |x| > ovfthreshold]
sinh(-710.475860073944), overflow, case |x| > ovfthreshold]
sinh(1000) = Infinity, case |x| > ovfthreshold
sinh(-1000) = -Infinity, case |x| > ovfthreshold
Test basic relationships
sinh(x) + sinh(-x) = 0, x = 1.01^k, 0 <= k < 500
sinh(x) + sinh(-x) = 0, x = 2^(-k), 0 <= k < 1000