Imaginary<T>.Add Method

Definition

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

Overload List

Add(T, Imaginary<T>) Adds an imaginary number to a real number.
Add(Imaginary<T>, T) Adds an imaginary number to a real number.
Add(Imaginary<T>, Imaginary<T>) Adds two imaginary numbers.

Add(T, Imaginary<T>)

Adds an imaginary number to a real number.
C#
public static Complex<T> Add(
	T a,
	Imaginary<T> z
)

Parameters

a  T
A real number number.
z  Imaginary<T>
An imaginary number.

Return Value

Complex<T>
A complex number that is the sum of the two operands.

Remarks

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

Add(Imaginary<T>, T)

Adds an imaginary number to a real number.
C#
public static Complex<T> Add(
	Imaginary<T> z,
	T a
)

Parameters

z  Imaginary<T>
An imaginary number.
a  T
A real number number.

Return Value

Complex<T>
A complex number that is the sum of the two operands.

Remarks

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

Add(Imaginary<T>, Imaginary<T>)

Adds two imaginary numbers.
C#
public static Imaginary<T> Add(
	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 sum of the two operands.

Remarks

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

See Also