|
|
|
NOTE When Math.imul Math.imul is called with arguments x and y , the following steps are taken: 1. Let a be ( x )). 2. Let b (? y )). 3. Let product be ( a
×
b 2 32 . 4. If product
≥ 2 31 ( product - 2 32 ); otherwise return ( product ). Returns the natural logarithm of x . When the Math.log Math.log method is called with argument x , the following steps are taken: 1. Let n ( x ). 2. If n is NaN or n is + ∞ 𝔽 , return n . 3. If n is 1 𝔽 , return +0 𝔽 . 4. If n is +0 𝔽 or n is -0 𝔽 , return - ∞ 𝔽 . 5. If n < +0 𝔽 , return NaN . 6. Return an n ). Returns the natural logarithm of 1 + x . The result is computed in a way that is accurate even when the value of x is close to zero. When the Math.log1p Math.log1p method is called with argument x , the following steps are taken: 1. Let n ( x ). 2. If n is NaN , n is +0 𝔽 , n is -0 𝔽 , or n is + ∞ 𝔽 , return n . 3. If n is -1 𝔽 , return - ∞ 𝔽 . 4. If n < -1 𝔽 , return NaN . 5. Return an n ). Returns the base 10 logarithm of x . When the Math.log10 Math.log10 method is called with argument x , the following steps are taken: 1. Let n ( x ). 2. If n is NaN or n is + ∞ 𝔽 , return n . 3. If n is 1 𝔽 , return +0 𝔽 . Implementations should take care to avoid the loss of precision from overflows and underflows 21.3.2.19 Math.imul ( x , y ) 21.3.2.20 Math.log ( x ) 21.3.2.21 Math.log1p ( x ) 21.3.2.22 Math.log10 ( x ) 525 |