Skip to content

RF Touchstone / index / abs

Variable: abs()

abs: {(x): number; <T>(x): T; }

Defined in: node_modules/mathjs/types/index.d.ts:7547

Call Signature

(x): number

Calculate the absolute value of a number. For matrices, the function is evaluated element wise.

Parameters

x

Complex

A number or matrix for which to get the absolute value

Returns

number

Absolute value of x

Call Signature

<T>(x): T

Type Parameters

T

T extends MathType

Parameters

x

T

Returns

T