JS Built-ins
← Math34 / 215
MathSQRT1_2intermediate

Math.SQRT1_2 β€” use in normalization

πŸ“– 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

When you multiply Math.SQRT1_2 by itself you get 0.5, and Math.SQRT1_2 * Math.SQRT2 equals 1.

Challenge: Explore the algebraic properties of Math.SQRT1_2.

πŸ’‘ Hints (2)
  • β€’ (√(1/2))Β² = 1/2 = 0.5
  • β€’ √(1/2) * √2 = √(1/2 * 2) = √1 = 1