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#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
[SerializableAttribute]
public readonly struct Quad : IComparable,
IEquatable<Quad>, IComparable<Quad>, IFormattable,
IEquatable<double>, IComparable<double>
- 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( | Constructs a new Quad for a BigInteger value. |
Quad( | Constructs a new Quad for a BigInteger value. |
Quad( | Constructs a new Quad for a Decimal value. |
Quad( | Constructs a new Quad. |
Quad( | Constructs a new Quad. |
Quad( | Constructs a new Quad. |
Quad( | Constructs a new Quad. |
Quad( | Constructs a new Quad. |
Quad( | Constructs a new quadruple precision number from two double-precision numbers. |
Quad( | 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. |
Compare | Compares a number to another number. |
Compare | Compares a number to another number. |
Cos | Returns the cosine of the specified angle. |
Cosh | Returns the hyperbolic cosine of the specified angle. |
Equals( | Tests whether a number equals another number. |
Equals( | Indicates whether this instance and a specified object are equal. (Overrides ValueType.Equals(Object)) |
Equals( | 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. |
Exp | 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. |
Get | Returns the hash code for this instance. (Overrides ValueType.GetHashCode()) |
Get | Gets 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. |
Inverse | Evaluates the inverse of the error function. |
Inverse | Evaluates the inverse of the complementary error function. |
IsFinite | Returns whether the specified quadruple-precision floating-point number is finite. |
IsNa | Checks if the value of a value is "Not a Number." |
IsNegative | Returns whether the specified quadruple-precision floating-point number is equal to negative infinity. |
IsPositive | Returns whether the specified quadruple-precision floating-point number is equal to positive infinity. |
Log( | Returns the natural (base e) logarithm of a specified number. |
Log( | Returns the logarithm of a specified number in a specified base. |
Log1Plus | 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( | Converts a string value to a Quad. |
Parse( | Converts a string value to a Quad. |
Parse( | Converts a string value to a Quad. |
Parse( | Converts a string value to a Quad. |
Pow( | Returns a specified number raised to the specified power. |
Pow( | Returns a number raised to an integer power. |
Round( | Rounds a Quad value to the nearest integral value. |
Round( | Rounds a Quad value to a specified number of fractional digits. |
Round( | 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( | 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. |
Scale | 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( | Formats the value of the current instance using the specified format. |
ToString( | Formats the value of the current instance using the specified format. |
ToString( | Formats the value of the current instance using the specified format. |
Truncate | Calculates the integral part of a specified quadruple precision number. |
Try | Attempts to convert a string value to a Quad. |
Try | Attempts to convert a string value to a Quad. |
Operators
Addition( | Adds two quadruple-precision floating-point numbers. |
Division( | Divides one quadruple-precision floating-point number by another. |
Equality( | 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( | Represents the exponentiation operator. |
Exponent( | Represents the exponentiation operator. |
Exponentiation( | Represents the exponentiation operator. |
Exponentiation( | Represents the exponentiation operator. |
Greater | Returns whether left quadruple-precision floating-point number is greater than another. |
Greater | 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( | Returns whether left quadruple-precision floating-point number is not equal to another. |
Less | Returns whether left quadruple-precision floating-point number is less than another. |
Less | Returns whether left quadruple-precision floating-point number is less than or equal to another. |
Modulus( | Computes the remainder after dividing one quadruple-precision floating-point number by another. |
Multiply( | Multiplies two quadruple-precision floating-point numbers. |
Subtraction( | Subtracts one quadruple-precision floating-point number from another. |
Unary | Returns the quadruple-precision number with the opposite sign. |
Fields
Accuracy | 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, |
Max | The largest possible Quad. |
Min | Gets the smallest positive number that has a normalized representation. |
Min | Gets the smallest positive number greater than zero. |
Minus | The number -1 as a Quad. |
Min | The smallest possible Quad. |
NaN | Not-a-Number, the value returned when the result is undefined. |
Negative | Negative infinity as a Quad, |
Negative | Negative 0 as a Quad, |
One | The number one as a Quad. |
Pi | The number pi as a Quad, |
PiOver | The number pi divided by 2 as a Quad, |
Positive | Positive infinity as a Quad, |
Zero | The number zero as a Quad. |