JS Built-ins
← Math31 / 215
MathSQRT1_2beginner

Math.SQRT1_2 β€” the value

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

The square root of 1/2, approximately 0.7071067811865476. This equals 1/√2 = √2/2.

Challenge: Explore the value of Math.SQRT1_2 and verify its type and range.

πŸ’‘ Hints (2)
  • β€’ Math.SQRT1_2 = √(1/2) = 1/√2 β‰ˆ 0.7071067811865476.
  • β€’ It is commonly used in trigonometry (sin/cos of 45Β°).