Complex<T>.Subtraction Operator

Definition

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

Overload List

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

Subtraction(T, Complex<T>) Operator

Subtracts a complex number from a real number.
C#
public static Complex<T> operator -(
	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

If you are using a language that does not support operator overloading, use the staticSubtract(T, Complex<T>) method instead.

Subtraction(Complex<T>, T) Operator

Subtracts a real number from a complex number.
C#
public static Complex<T> operator -(
	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

If you are using a language that does not support operator overloading, use the staticSubtract(Complex<T>, T) method instead.

Subtraction(Complex<T>, Complex<T>) Operator

Subtracts two complex numbers.
C#
public static Complex<T> operator -(
	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.

Implements

ISubtractionOperators<TSelf, TOther, TResult>.Subtraction(TSelf, TOther)

Remarks

If you are using a language that does not support operator overloading, use the staticSubtract(Complex<T>, Complex<T>) method instead.

See Also