JS Built-ins
← Math33 / 215
MathSQRT1_2intermediate

Math.SQRT1_2 β€” equals Math.sqrt(0.5)

πŸ“– 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 equals Math.sqrt(0.5), the square root of 0.5.

Challenge: Verify that Math.sqrt(0.5) β‰ˆ Math.SQRT1_2.

πŸ’‘ Hints (2)
  • β€’ Math.sqrt(0.5) = √(1/2) = Math.SQRT1_2
  • β€’ They may differ by a tiny floating-point rounding error.