JS Built-ins
← Math32 / 215
MathSQRT1_2intermediate

Math.SQRT1_2 β€” equals 1/Math.SQRT2

πŸ“– Usage Example
// Square root of 1/2 (= 1 / Math.SQRT2)
Math.SQRT1_2   // β†’ 0.7071067811...
Math.SQRT1_2 === 1 / Math.SQRT2   // β†’ true

Use Math.SQRT1_2 as a precomputed constant equal to 1/√2, useful in trigonometry and vector normalization.

Math.SQRT1_2

Math.SQRT1_2 is the reciprocal of Math.SQRT2: SQRT1_2 = 1 / SQRT2.

Challenge: Verify that Math.SQRT1_2 === 1/Math.SQRT2.

πŸ’‘ Hints (2)
  • β€’ SQRT1_2 = 1/SQRT2 = √(1/2)
  • β€’ They represent the same value stored as a constant.