ComplexT Structure

Generic Complex

Definition

Namespace: Metas.UncLib.Core
Assembly: Metas.UncLib.Core (in Metas.UncLib.Core.dll) Version: 2.8.9053.20192
C#
[SerializableAttribute]
public struct Complex<T> : IComplexNumber<Complex<T>, T>, 
	INumber<Complex<T>>, IConsole, IStorage<Complex<T>>, 
	IStorageBinary, IComparable, IElementArithmetic<Complex<T>>, IArithmetic<Complex<T>>, 
	IMath<Complex<T>>, IComplexMath<Complex<T>, T>
where T : new(), Object, IRealNumber<T>
Inheritance
Object    ValueType    ComplexT
Implements
IArithmeticComplexT, IComparable, IComplexMathComplexT, T, IComplexNumberComplexT, T, IConsole, IElementArithmeticComplexT, IMathComplexT, INumberComplexT, IStorageComplexT, IStorageBinary

Type Parameters

T
Real Type

Constructors

ComplexT(T) Creates a new Complex with Imaginary Part = 0
ComplexT(T, T) Creates a new Complex
ComplexT(Double, Double) Creates a new Complex

Properties

IsConst Returns true if it's a Const
J Returns the square root of -1.
memsize Number of bytes allocated for the Object.
One Returns the neutral element of multiplication
Zero Returns the neutral element of addition

Methods

Abs Returns the absolute value.
AbsSqr Returns the absolute square.
Acos Returns the angle whose cosine is the specified number.
Acosh Returns the angle whose hyperbolic cosine is the specified number.
Add Returns the sum of the object and b.
Angle Returns the angle.
Asin Returns the angle whose sine is the specified number.
Asinh Returns the angle whose hyperbolic sine is the specified number.
Atan Returns the angle whose tangent is the specified number.
Atanh Returns the angle whose hyperbolic tangent is the specified number.
BinaryDeserialize Binary Deserialize an Object from File.
BinaryDeserializeFromByteArray Binary Deserialize an Object from a byte array.
BinarySerialize Binary Serialize an Object to File.
BinarySerializeToByteArray Binary Serialize an Object to a byte array.
BinarySetDataFrom Set object data from Binary Reader.
BinaryWriteDataTo Write object data to Binary Writer.
Conj Returns the complex conjugate.
Cos Returns the cosine of the specified angle.
Cosh Returns the hyperbolic cosine of the specified angle.
DblImagExpValue Returns the imaginary expected value.
DblImagFcnValue Returns the imaginary function value.
DblImagValue Returns the imaginary value (expected value).
DblRealExpValue Returns the real expected value.
DblRealFcnValue Returns the real function value.
DblRealValue Returns the real value (expected value).
DblSqrFcnValue Returns the square function value.
Debug Debug an Object
Divide Returns the quotient of the object and b.
EqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
Exp Returns e raised to the specified power.
FcnValue2 Returns the function value.
FromPolarCoordinates From Polar Coordinates
GetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Imag Returns the imaginary part.
InitDbl Initializes a Complex Number with Imaginary Part = 0.
InitDblReIm Initializes a Complex Number.
InitMagPhase Initializes a Complex Number.
InitRe Initializes a Complex Number with Imaginary Part = 0.
InitReIm Initializes a Complex Number.
IsNotZero Returns true if the Value of an Object is not equal to zero.
IsOne Returns true if the Value of an Object is equal to one.
IsZero Returns true if the Value of an Object is equal to zero.
Log Returns the natural (base e) logarithm of a specified number.
Log(ComplexT) Returns the logarithm of a specified number in a specified base.
Log10 Returns the base 10 logarithm of a specified number.
Multiply Returns the product of the object and b.
Negative Returns the negative of the object.
Pow(ComplexT) Returns a specified number raised to the specified power.
Pow(Int32) Returns a specified number raised to the specified power.
Real Returns the real part.
Sin Returns the sine of the specified angle.
Sinh Returns the hyperbolic sine of the specified angle.
Sqrt Returns the square root of a specified number.
Subtract Returns the difference of the object and b.
Tan Returns the tangent of the specified angle.
Tanh Returns the hyperbolic tangent of the specified angle.
ToString Override ToString() to display an Object.
(Overrides ValueTypeToString)
XmlDeserialize Xml Deserialize an Object from File.
XmlDeserializeFromString Xml Deserialize an Object from String.
XmlSerialize Xml Serialize an Object to File.
XmlSerializeToString Xml Serialize an Object to String.

Operators

Addition(ComplexT, ComplexT) Overloading '+' operator
Division(ComplexT, ComplexT) Overloading '/' operator
(T to ComplexT) Convert Real Number to Complex Number
(Double to ComplexT) Convert double to Complex
(RealT to ComplexT) Convert Real Number to Complex Number
Multiply(ComplexT, ComplexT) Overloading '*' operator
Subtraction(ComplexT, ComplexT) Overloading '-' operator
UnaryNegation(ComplexT) Overloading '-' operator
UnaryPlus(ComplexT) Overloading '+' operator

Fields

imag Imaginary Part
real Real Part

See Also