Skip to content

RF Touchstone


RF Touchstone / touchstone / abs

Variable: abs()

abs: <T>(x) => T

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

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

Type Parameters

T

T extends MathType

Parameters

x

T

A number or matrix for which to get the absolute value

Returns

T

Absolute value of x