JS Built-ins
MathLN2intermediate

Math.LN2 β€” relationship to LOG2E

πŸ“– Usage Example
// Natural logarithm of 2
Math.LN2          // β†’ 0.6931471805...
Math.log(2) === Math.LN2   // β†’ true

Use Math.LN2 as a precomputed constant when converting between natural and base-2 logarithms.

Math.LN2

Math.LN2 and Math.LOG2E are reciprocals: their product is 1.

Challenge: Verify the reciprocal relationship between LN2 and LOG2E.

πŸ’‘ Hints (2)
  • β€’ LN2 = 1 / LOG2E by definition.
  • β€’ Their product should be exactly 1.