Policies & Guidelines

HYPOT

Calculate hypotenusa

Description

Calculate the hypotenusea of an array of numbers, i.e. the square root of the sum of squares of the numbers.

Function signature

HYPOT(values: Array) => Number

Parameter

Description

Values

Array of numeric values

Examples

Formula

Return value

HYPOT([10, 20, 30])

37.416573867739416

HYPOT([3, 4])

5

HYPOT([])

0