Skip to content

RF Touchstone / index / add

Variable: add()

add: {<T>(x, y): T; <T>(x, y, ...values): T; (x, y): MathType; (x, y, ...values): MathType; }

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

Call Signature

<T>(x, y): T

Add two values, x + y. For matrices, the function is evaluated element wise.

Type Parameters

T

T extends MathType

Parameters

x

T

First value to add

y

T

Second value to add

Returns

T

Sum of x and y

Call Signature

<T>(x, y, ...values): T

Type Parameters

T

T extends MathType

Parameters

x

T

y

T

values

...T[]

Returns

T

Call Signature

(x, y): MathType

Parameters

x

MathType

y

MathType

Returns

MathType

Call Signature

(x, y, ...values): MathType

Parameters

x

MathType

y

MathType

values

...MathType[]

Returns

MathType