Imaginary<T>.Subtraction Operator

Definition

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

Overload List

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

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

Subtracts an imaginary number from a complex number.
C#
public static Complex<T> operator -(
	Complex<T> z2,
	Imaginary<T> z
)

Parameters

z2  Complex<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

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

Subtraction(T, Imaginary<T>) Operator

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

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

Subtraction(Imaginary<T>, T) Operator

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

Remarks

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

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

Subtracts a complex number from an imaginary number.
C#
public static Complex<T> operator -(
	Imaginary<T> z,
	Complex<T> z2
)

Parameters

z  Imaginary<T>
The imaginary number.
z2  Complex<T>
The complex number.

Return Value

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

Remarks

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

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

Subtracts two complex numbers.
C#
public static Imaginary<T> operator -(
	Imaginary<T> z1,
	Imaginary<T> z2
)

Parameters

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

Return Value

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

Remarks

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

See Also