Set of mathematical functions for complex numbers. It provides the basic operations (addition, subtraction, multiplication, division) as well as a set of complex functions.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
[SerializableAttribute]
public struct Complex : IComparable, IFormattable
Visual Basic (Declaration)
<SerializableAttribute> _
Public Structure Complex _
	Implements IComparable, IFormattable
Visual C++
[SerializableAttribute]
public value class Complex : IComparable, 
	IFormattable

Remarks

The binary operations have the form, where op is Add, Subtract, Multiply or Divide.

CopyC#
public static Complex op(Complex x, Complex y)   // x op y
public static Complex op(Complex x, double y)    // x op y
public static Complex op(double x, Complex y)    // x op y

Complex objects are immutable. Once created there is no way to change their value. The functions in this class follow the rules for complex arithmetic as defined C9x Annex G: IEC 559-compatible complex arithmetic. The API is not the same, but handling of infinities, NaNs, and positive and negative zeros is intended to follow the same rules.

See Also