Function pythagorean

  • The Pythagorean Theorem states that the sum of the squared sides of a right triangle equals the length of the hypotenuse squared.

    Parameters

    • a: number

      The length of side a.

    • b: number

      The length of side b.

    Returns number

    Returns the length of the hypotenuse.