RealT Structure

Generic Real used to capsule an IRealNumber<T> because interfaces do not support operator overloading and implicit type conversion.

Definition

Namespace: Metas.UncLib.Core
Assembly: Metas.UncLib.Core (in Metas.UncLib.Core.dll) Version: 2.8.9053.20192
C#
public struct Real<T> : IRealNumber2<Real<T>, T>, 
	IRealNumber, INumber<Real<T>>, IConsole, IStorage<Real<T>>, 
	IStorageBinary, IComparable, IElementArithmetic<Real<T>>, IArithmetic<Real<T>>, 
	IMath<Real<T>>, IRealMath<Real<T>>
where T : new(), Object, IRealNumber<T>
Inheritance
Object    ValueType    RealT
Implements
IArithmeticRealT, IComparable, IConsole, IElementArithmeticRealT, IMathRealT, INumberRealT, IRealMathRealT, IRealNumber, IRealNumber2RealT, T, IStorageRealT, IStorageBinary

Type Parameters

T
Real Type

Constructors

RealT(Double) Creates new Real
RealT(T) Creates new Real

Properties

ExpValue Expected Value
FcnValue Function Value
IDof Computes the Inverse of the Degrees of Freedom
IsConst Returns true if it's a Const
Item Item IRealNumber<T>
memsize Number of bytes allocated for the Object.
One Returns the neutral element of multiplication
StdUnc Computes the Standard Uncertainty
Value Value
Zero Returns the neutral element of addition

Methods

Abs Returns the absolute value.
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.
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.
Atan2 Returns the angle whose tangent is the quotient of two specified numbers.
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.
ComplexAbs Complex absolute value
ComplexDivision Complex division
Conj Returns the complex conjugate.
Cos Returns the cosine of the specified angle.
Cosh Returns the hyperbolic cosine of the specified angle.
DblSqrFcnValue Returns the square function value.
Debug Debug an Object
Divide Returns the quotient of the object and b.
Ellipe Returns the complete elliptic integral of the second kind.
Ellipk Returns the complete elliptic integral of the first kind.
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.
GetCoverageInterval Computes the Coverage Interval
GetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
GetMoment Computes the n-th Central Moment
GetTypeGets the Type of the current instance.
(Inherited from Object)
InitDbl Initializes a Real 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(RealT) 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(Int32) Returns a specified number raised to the specified power.
Pow(RealT) Returns a specified number raised to the specified power.
Sign Returns a value indicating the sign of a number.
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(Double, RealT) Overloading '+' operator
Addition(T, RealT) Overloading '+' operator
Addition(RealT, T) Overloading '+' operator
Addition(RealT, RealT) Overloading '+' operator
Addition(RealT, Double) Overloading '+' operator
Division(Double, RealT) Overloading '/' operator
Division(T, RealT) Overloading '/' operator
Division(RealT, T) Overloading '/' operator
Division(RealT, RealT) Overloading '/' operator
Division(RealT, Double) Overloading '/' operator
(Double to RealT) Convert double to Real
(T to RealT) Convert IRealNumber<T> to Real
(RealT to T) Convert Real to IRealNumber<T>
Multiply(Double, RealT) Overloading '*' operator
Multiply(T, RealT) Overloading '*' operator
Multiply(RealT, T) Overloading '*' operator
Multiply(RealT, RealT) Overloading '*' operator
Multiply(RealT, Double) Overloading '*' operator
Subtraction(Double, RealT) Overloading '-' operator
Subtraction(T, RealT) Overloading '-' operator
Subtraction(RealT, T) Overloading '-' operator
Subtraction(RealT, RealT) Overloading '-' operator
Subtraction(RealT, Double) Overloading '-' operator
UnaryNegation(RealT) Overloading '-' operator
UnaryPlus(RealT) Overloading '+' operator

See Also