Complex<T>.Subtract Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Subtract(T, Complex<T>) Subtracts a complex number from a real number.
Subtract(Complex<T>, T) Subtracts a real number from a complex number.
Subtract(Complex<T>, Complex<T>) Subtracts two complex numbers.

Subtract(T, Complex<T>)

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

Parameters

a  T
The real number.
z  Complex<T>
The complex 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, Complex<T>). It is provided for languages that do not support operator overloading.

Subtract(Complex<T>, T)

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

Parameters

z  Complex<T>
The complex number.
a  T
The real number.

Return Value

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

Remarks

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

Subtract(Complex<T>, Complex<T>)

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

Parameters

z1  Complex<T>
The first complex number.
z2  Complex<T>
The second complex number.

Return Value

Complex<T>
A complex number that is the difference between the two operands.

Remarks

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

See Also