lml-main
Version:
This is now a mono repository published into many standalone packages.
46 lines (28 loc) • 886 B
Markdown
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
Calculate the hypotenusa of a list with values. The hypotenusa is defined as:
hypot(a, b, c, ...) = sqrt(a^2 + b^2 + c^2 + ...)
For matrix input, the hypotenusa is calculated for all values in the matrix.
```js
math.hypot(a, b, ...)
math.hypot([a, b, c, ...])
```
Parameter | Type | Description
--------- | ---- | -----------
`args` | ... number &
Type | Description
---- | -----------
number &
```js
math.hypot(3, 4); // 5
math.hypot(3, 4, 5); // 7.0710678118654755
math.hypot([3, 4, 5]); // 7.0710678118654755
math.hypot(-2); // 2
```
[](abs.md),
[](norm.md)