Function reference · Math

hypot

Returns the length of the vector (x, y): sqrt(x^2+y^2).

Notation

hypot(arg1, arg2)

Write it in an expression: nerdamer('hypot(3,4)'), or in the Playground.

nerdamer.hypot

nerdamer.hypot(...args: [a, b]): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

A 3-4-5 triangle.

hypot(3,4)
// → 5
Open in Playground

Symbolic components.

hypot(2*a,b)
// → (4*a^2+b^2)^(1/2)
Open in Playground

← Back to Function reference