Functions

hypot

Supported By

Syntax

[the] hypot of factor

hypot ( expression )

Factor and expression yield lists of integers, numbers, or complexes.

Example

put hypot(3,4) -- yields 5

Description

The hypot function returns the square root of the sum of the squares of its arguments. For one argument, this is equivalent to the abs function. For n arguments, this is equivalent to the distance from the origin of the specified point in n-dimensional space.

Note

This function is similar to the abs function, but can take more than one argument.

Synonym

radius

See Also

abs, xcoord, ycoord, theta