Imaginary<T>.Multiply Method

Definition

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

Overload List

Multiply(T, Imaginary<T>) Multiplies an imaginary number and a real number.
Multiply(Imaginary<T>, T) Multiplies an imaginary number and a real number.
Multiply(Imaginary<T>, Imaginary<T>) Multiplies two imaginary numbers.

Multiply(T, Imaginary<T>)

Multiplies an imaginary number and a real number.
C#
public static Imaginary<T> Multiply(
	T a,
	Imaginary<T> z
)

Parameters

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

Return Value

Imaginary<T>
An imaginary number that is the product of the two operands.

Remarks

The product of a real number and an imaginary number is an imaginary number.

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

Multiply(Imaginary<T>, T)

Multiplies an imaginary number and a real number.
C#
public static Imaginary<T> Multiply(
	Imaginary<T> z,
	T a
)

Parameters

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

Return Value

Imaginary<T>
An imaginary number that is the product of the two operands.

Remarks

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

Multiply(Imaginary<T>, Imaginary<T>)

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

Parameters

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

Return Value

T
A real number that is the product of the two operands.

Remarks

The product of two imaginary numbers is always real.

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

See Also