﻿Complex Structure

# Complex Structure

Represents a complex number.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
`public struct Complex : IEquatable<Complex>`

The Complex type exposes the following members.

Constructors
NameDescription
Complex
Initializes a new complex number.
Top
Properties
NameDescription
Conjugate
Gets the complex conjugate of the complex number.
Im
Gets the imaginary part of the complex number.
Re
Gets the real part of the complex number.
Top
Methods
NameDescription
Equals(Object)
Determines whether the given object represents the same complex number.
(Overrides ValueTypeEquals(Object).)
Equals(Complex)
Determines whether the given complex number is the same.
GetHashCode
Returns a hash code for the complex number.
(Overrides ValueTypeGetHashCode.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
IsNaN
Determines if the given complex number is not-a-number.
ToString
Produces a string representation of the complex number.
(Overrides ValueTypeToString.)
Top
Operators
NameDescription
Computes the sum of a real and a complex number.
Computes the sum of a complex and a real number.
Division(Complex, Complex)
Divides two complex numbers.
Division(Complex, Double)
Divides a complex number by a real number.
Equality
Tests the equality of two complex numbers.
(Complex to Double)
Converts the complex number to a double-precision real number.
(Double to Complex)
Converts a double-precision real number to a complex number.
(Complex to Complex)
Converts a System.Numerics.Complex number to a Meta.Numerics.Complex number.
(Complex to Complex)
Converts a Meta.Numerics.Complex number to a System.Numerics.Complex number.
Inequality
Tests the inequality of two complex numbers.
Multiply(Double, Complex)
Multiplies a complex number by a real number.
Multiply(Complex, Complex)
Multiplies two complex numbers.
Multiply(Complex, Double)
Multiplies a real number by a complex number.
Subtraction
Subtracts the second complex number from the first.
UnaryNegation
Negates a complex number.
Top
Fields
NameDescription
I
Gets the square root of negative one.
One
Gets one as a complex number.
Zero
Gets zero as a complex number.
Top
Remarks

Version 4.0 of the .NET Framework introduced a Complex structure equivalent to this one. To maintain compatibility with earlier versions of the .NET Framework, Meta.Numerics maintains its own Complex structure. The Meta.Numerics complex type and the .NET Framework complex type can be used interchangably, because Meta.Numerics defines an implicit cast between them.