Skip to main content

Overview

This function returns the hypotenuse (longest side) of a triangle with a given length and base.

Parameters

hypotenuse(length, base)
  • Length: One side of the right triangle.
  • Base: The other side of the right triangle.

Example

hypotenuse(3, 4)
Returns 5.
I