🍋
Menu
Math

Pythagorean Theorem

The relation a^2 + b^2 = c^2 in a right triangle, where c is the hypotenuse.

Detail Teknis

Pythagorean Theorem functions relate angles to side ratios in right triangles. In computing, angles are typically in radians (π radians = 180°). Key identities: sin²θ + cos²θ = 1, sin(2θ) = 2sinθcosθ. Applications include wave generation (audio synthesis), rotation transforms (2D/3D graphics), signal processing (Fourier analysis), and geolocation (haversine formula for great-circle distance). JavaScript's Math.sin() expects radians, so convert degrees with: radians = degrees × π / 180.

Contoh

```
Trigonometric functions (right triangle):

  sin(θ) = opposite / hypotenuse
  cos(θ) = adjacent / hypotenuse
  tan(θ) = opposite / adjacent

  For a 30° angle:
  sin(30°) = 0.5,  cos(30°) ≈ 0.866,  tan(30°) ≈ 0.577

  Radians: 180° = π rad → degrees × π / 180 = radians
```

Format Terkait

Alat Terkait

Istilah Terkait