Function reference · Math

hypot

Computes the Euclidean magnitude sqrt(x^2+y^2).

hypot combines two components through a square root and lets Nerdamer simplify the resulting algebraic form. This is also used internally for complex magnitudes.

Examples

These examples use Nerdamer Notation.

Evaluate the 3-4-5 triangle.

hypot(3,4)
// → 5

Keep symbolic components in the magnitude.

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

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

hypot(arg1, arg2)

nerdamer.hypot

Call the operation through the default nerdamer import.

nerdamer.hypot(a: Expression, b: Expression): Expression

Parameters

NameTypeDescription
aExpression
bExpression

Returns

Expression

Browse the nerdamer API →

← Back to Reference