Imaginary<T>.Subtract Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

Subtract(T, Imaginary<T>) Subtracts an imaginary number from a real number.
Subtract(Imaginary<T>, T) Subtracts a real number from an imaginary number.
Subtract(Imaginary<T>, Imaginary<T>) Subtracts two imaginary numbers.

Subtract(T, Imaginary<T>)

Subtracts an imaginary number from a real number.
C#
public static Complex<T> Subtract(
	T a,
	Imaginary<T> z
)

Parameters

a  T
The real number.
z  Imaginary<T>
The imaginary number.

Return Value

Complex<T>
A complex number that equals the real number minus the complex number.

Remarks

This method is equivalent to the Subtraction(T, Imaginary<T>). It is provided for languages that do not support operator overloading.

Subtract(Imaginary<T>, T)

Subtracts a real number from an imaginary number.
C#
public static Complex<T> Subtract(
	Imaginary<T> z,
	T a
)

Parameters

z  Imaginary<T>
The imaginary number.
a  T
The real number.

Return Value

Complex<T>
A complex number that equals the imaginary number minus the real number.

Remarks

This method is equivalent to the Subtraction(Imaginary<T>, T). It is provided for languages that do not support operator overloading.

Subtract(Imaginary<T>, Imaginary<T>)

Subtracts two imaginary numbers.
C#
public static Imaginary<T> Subtract(
	Imaginary<T> z1,
	Imaginary<T> z2
)

Parameters

z1  Imaginary<T>
The first imaginary number.
z2  Imaginary<T>
The second imaginary number.

Return Value

Imaginary<T>
An imaginary number that is the difference between the two operands.

Remarks

This method is equivalent to the Subtraction(Imaginary<T>, Imaginary<T>). It is provided for languages that do not support operator overloading.

See Also