Complex<T> Constructor

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Constructs a complex number

Overload List

Complex<T>(T) Constructs a complex number from a real number.
Complex<T>(T, T) Constructs a complex number from its real and imaginary parts.

Complex<T>(T)

Constructs a complex number from a real number.
C#
public Complex(
	T realPart
)

Parameters

realPart  T
The real part of the complex number.

Remarks

The imaginary part of the complex number is set to zero.

Complex<T>(T, T)

Constructs a complex number from its real and imaginary parts.
C#
public Complex(
	T realPart,
	T imaginaryPart
)

Parameters

realPart  T
The real part.
imaginaryPart  T
The imaginary part.

See Also