Element-by-element square root of the sum of the squares. |
||
Syntax |
h = hypot(x, y) |
|
Arguments |
Name |
Description |
x |
Matrix x. |
|
y |
Matrix y. |
|
Outputs |
Name |
Description |
h |
A matrix. |
|
Example |
Syntax |
|
h1 = hypot(0, 1) print(h1) h2= hypot(1, 0) print(h2) h3 = hypot(1, 100) print(h3) |
||
Comments |
h = hypot(x, y) returns the element-by-element square root of the sum of x and y. hypot is based on the C99 function hypot for real numbers. |