Quad Structure

Represents a real number in IEEE/IEC quadruple-precision floating-point format.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
[SerializableAttribute]
public readonly struct Quad : IComparable, 
	IEquatable<Quad>, IComparable<Quad>, IFormattable, 
	IEquatable<double>, IComparable<double>
Inheritance
Object  →  ValueType  →  Quad
Implements
IComparable, IComparable<Quad>, IComparable<Double>, IEquatable<Quad>, IEquatable<Double>, IFormattable

Remarks

Use the Quad structure to represent real numbers with an extended range and precision.

Constructors

Quad(BigInteger) Constructs a new Quad for a BigInteger value.
Quad(BigRational) Constructs a new Quad for a BigInteger value.
Quad(Decimal) Constructs a new Quad for a Decimal value.
Quad(Double) Constructs a new Quad.
Quad(Int32) Constructs a new Quad.
Quad(Int64) Constructs a new Quad.
Quad(UInt32) Constructs a new Quad.
Quad(UInt64) Constructs a new Quad.
Quad(Double, Double) Constructs a new quadruple precision number from two double-precision numbers.
Quad(Int64, Int64) Constructs a new quadruple precision number from raw data.

Properties

High64Bits Gets the upper 64 bits in the binary representation of the quadruple precision floating-point number.
Low64Bits Gets the lower 64 bits in the binary representation of the quadruple precision floating-point number.

Methods

Abs Returns the absolute value of a quadruple precision number.
Acos Returns the angle whose cosine is the specified number.
Acosh Returns the inverse hyperbolic cosine of a number.
Asin Returns the angle whose sine is the specified number.
Asinh Returns the inverse hyperbolic sine of a number.
Atan Returns the angle whose tangent is the specified number.
Atan2 Returns the angle between the X-axis and the ray from the origin to the specified point.
Atanh Returns the inverse hyperbolic tangent of a number.
Ceiling Returns the smallest integral value that is greater than or equal to the specified quadruple precision number.
Compare Compares two quadruple-precision numbers.
CompareTo(Double) Compares a number to another number.
CompareTo(Quad) Compares a number to another number.
Cos Returns the cosine of the specified angle.
Cosh Returns the hyperbolic cosine of the specified angle.
Equals(Double) Tests whether a number equals another number.
Equals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object))
Equals(Quad) Tests whether a number equals another number.
Erf Evaluates the error function.
Erfc Evaluates the complementary error function.
Exp Returns e raised to the specified power.
ExpMinus1 Returns e raised to the specified power to the specified accuracy.
Floor Returns the largest integer less than or equal to the specified quadruple precision number.
GetHashCodeReturns the hash code for this instance.
(Overrides ValueType.GetHashCode())
GetTypeGets the Type of the current instance.
(Inherited from Object)
Hypot Gets the length of the hypotenuse of a right-angled triangle with sides of specified length.
InverseErf Evaluates the inverse of the error function.
InverseErfc Evaluates the inverse of the complementary error function.
IsFinite Returns whether the specified quadruple-precision floating-point number is finite.
IsNaN Checks if the value of a value is "Not a Number."
IsNegativeInfinity Returns whether the specified quadruple-precision floating-point number is equal to negative infinity.
IsPositiveInfinity Returns whether the specified quadruple-precision floating-point number is equal to positive infinity.
Log(Quad) Returns the natural (base e) logarithm of a specified number.
Log(Quad, Quad) Returns the logarithm of a specified number in a specified base.
Log1PlusX Returns the logarithm of 1 plus the argument.
Max Returns the larger of two quadruple precision numbers.
Min Returns the smaller of two quadruple precision numbers.
Parse(String) Converts a string value to a Quad.
Parse(String, NumberStyles) Converts a string value to a Quad.
Parse(String, IFormatProvider) Converts a string value to a Quad.
Parse(String, NumberStyles, IFormatProvider) Converts a string value to a Quad.
Pow(Quad, Quad) Returns a specified number raised to the specified power.
Pow(Quad, Int32) Returns a number raised to an integer power.
Round(Quad) Rounds a Quad value to the nearest integral value.
Round(Quad, Int32) Rounds a Quad value to a specified number of fractional digits.
Round(Quad, MidpointRounding) Rounds a Quad value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers.
Round(Quad, Int32, MidpointRounding) Rounds a Quad value to a specified number of fractional digits. A parameter specifies how to round the value if it is midway between two other numbers.
ScaleByPowerOfTwo Multiplies a quadruple-precision value by a power of two.
Sign Gets the sign of the quadruple precision number: -1, 0, or 1.
Sin Returns the sine of the specified angle.
Sinh Returns the hyperbolic sine of the specified angle.
Sqrt Returns the square root of a number.
Sqrt1pxm1 Returns the difference between the square root of a number close to 1, and 1.
Tan Returns the tangent of the specified angle.
Tanh Returns the hyperbolic tangent of the specified angle.
ToString() Returns a String representation of the number.
(Overrides ValueType.ToString())
ToString(IFormatProvider) Formats the value of the current instance using the specified format.
ToString(String) Formats the value of the current instance using the specified format.
ToString(String, IFormatProvider) Formats the value of the current instance using the specified format.
Truncate Calculates the integral part of a specified quadruple precision number.
TryParse(String, Quad) Attempts to convert a string value to a Quad.
TryParse(String, NumberStyles, IFormatProvider, Quad) Attempts to convert a string value to a Quad.

Operators

Addition(Quad, Quad) Adds two quadruple-precision floating-point numbers.
Division(Quad, Quad) Divides one quadruple-precision floating-point number by another.
Equality(Quad, Quad) Returns whether left quadruple-precision floating-point number is equal to another.
Explicit(BigInteger to Quad) Converts a BigInteger number to a Quad value.
Explicit(Decimal to Quad) Converts a Decimal number to a Quad value.
Explicit(Quad to Byte) Converts a Quad to a Byte value.
Explicit(Quad to Decimal) Converts a Quad to a Decimal number.
Explicit(Quad to Double) Converts a Quad to a double-precision floating-point number.
Explicit(Quad to Int16) Converts a Quad to a Int16 value.
Explicit(Quad to Int32) Converts a Quad to a Int32 value.
Explicit(Quad to Int64) Converts a Quad to a long integer.
Explicit(Quad to SByte) Converts a Quad to a SByte value.
Explicit(Quad to Single) Converts a Quad to a single-precision floating-point number.
Explicit(Quad to UInt16) Converts a Quad to a UInt16 value.
Explicit(Quad to UInt32) Converts a Quad to an unsigned integer.
Explicit(Quad to UInt64) Converts a Quad to a long unsigned integer.
Explicit(Single to Quad) Converts a single-precision floating-point number to a Quad value.
Exponent(Quad, Quad) Represents the exponentiation operator.
Exponent(Quad, Int32) Represents the exponentiation operator.
Exponentiation(Quad, Quad) Represents the exponentiation operator.
Exponentiation(Quad, Int32) Represents the exponentiation operator.
GreaterThan(Quad, Quad) Returns whether left quadruple-precision floating-point number is greater than another.
GreaterThanOrEqual(Quad, Quad) Returns whether left quadruple-precision floating-point number is greater than or equal to another.
Implicit(Byte to Quad) Converts a Byte value to a Quad number.
Implicit(Double to Quad) Converts a double-precision floating-point number to a quadruple-precision floating-point number.
Implicit(Int16 to Quad) Converts a 16 bit signed integer to a Quad value.
Implicit(Int32 to Quad) Converts a 32 bit signed integer to a Quad value.
Implicit(Int64 to Quad) Converts a 64 bit signed integer to a Quad value.
Implicit(SByte to Quad) Converts a signed byte to a Quad value.
Implicit(UInt16 to Quad) Converts a 16 bit unsigned integer to a Quad value.
Implicit(UInt32 to Quad) Converts a 32 bit unsigned integer to a Quad value.
Implicit(UInt64 to Quad) Converts a 64 bit unsigned integer to a Quad value.
Inequality(Quad, Quad) Returns whether left quadruple-precision floating-point number is not equal to another.
LessThan(Quad, Quad) Returns whether left quadruple-precision floating-point number is less than another.
LessThanOrEqual(Quad, Quad) Returns whether left quadruple-precision floating-point number is less than or equal to another.
Modulus(Quad, Quad) Computes the remainder after dividing one quadruple-precision floating-point number by another.
Multiply(Quad, Quad) Multiplies two quadruple-precision floating-point numbers.
Subtraction(Quad, Quad) Subtracts one quadruple-precision floating-point number from another.
UnaryNegation(Quad) Returns the quadruple-precision number with the opposite sign.

Fields

AccuracyGoal Defines the accuracy of quadruple precision floating-point numbers.
E The number e, basis of the natural logarithm, as a Quad,
Epsilon Gets the machine precision quadruple precision floating-point numbers.
Log2 The natural logarithm of 2 as a Quad,
MaxValue The largest possible Quad.
MinNormalizedValue Gets the smallest positive number that has a normalized representation.
MinPositiveValue Gets the smallest positive number greater than zero.
MinusOne The number -1 as a Quad.
MinValue The smallest possible Quad.
NaN Not-a-Number, the value returned when the result is undefined.
NegativeInfinity Negative infinity as a Quad,
NegativeZero Negative 0 as a Quad,
One The number one as a Quad.
Pi The number pi as a Quad,
PiOverTwo The number pi divided by 2 as a Quad,
PositiveInfinity Positive infinity as a Quad,
Zero The number zero as a Quad.

See Also