Class BigRational
Represents an arbitrarily large rational number.
Inheritance
Implements
Namespace: System.Numerics
Assembly: System.Numerics.Rational.dll
Syntax
public sealed class BigRational : ValueType
Constructors
Name | Description |
---|---|
BigRational(Byte) | Initializes a new instance of BigRational to the value of the number. |
BigRational(Char) | Initializes a new instance of BigRational to the value of the number. |
BigRational(Decimal) | Initializes a new instance of BigRational to the value of the number. |
BigRational(Double) | Defines an explicit bit-exact conversion of a System.Double value to a BigRational value. |
BigRational(Half) | Initializes a new instance of BigRational to the value of the number. |
BigRational(Int128) | Initializes a new instance of BigRational to the value of the number. |
BigRational(Int16) | Initializes a new instance of BigRational to the value of the number. |
BigRational(Int32) | Initializes a new instance of BigRational to the value of the number. |
BigRational(Int64) | Initializes a new instance of BigRational to the value of the number. |
BigRational(IntPtr) | Initializes a new instance of BigRational to the value of the number. |
BigRational(BigInteger) | Initializes a new instance of BigRational to the value of the number. |
BigRational(NFloat) | Initializes a new instance of BigRational to the value of the number. |
BigRational(SByte) | Initializes a new instance of BigRational to the value of the number. |
BigRational(Single) | Defines an explicit bit-exact conversion of a System.Single value to a BigRational value. |
BigRational(UInt128) | Initializes a new instance of BigRational to the value of the number. |
BigRational(UInt16) | Initializes a new instance of BigRational to the value of the number. |
BigRational(UInt32) | Initializes a new instance of BigRational to the value of the number. |
BigRational(UInt64) | Initializes a new instance of BigRational to the value of the number. |
BigRational(UIntPtr) | Initializes a new instance of BigRational to the value of the number. |
Properties
Name | Description |
---|---|
MaxDigits | Gets or sets the default maximum number of decimal digits computed by functions with irrational results. |
task_cpu | Safe thread static instance of a BigRational.CPU for general use. |
Methods
Name | Description |
---|---|
Abs(BigRational) | Gets the absolute value of a BigRational number. |
Acos(BigRational) | Computes the arc-cosine of a value. |
Acos(BigRational, Int32) | Returns the angle whose cosine is the specified number. |
Acosh(BigRational) | Computes the hyperbolic arc-cosine of a value. |
Acosh(BigRational, Int32) | Computes the hyperbolic arc-cosine of a value. |
AcosPi(BigRational) | Computes the arc-cosine of a value and divides the result by |
AcosPi(BigRational, Int32) | Computes the arc-cosine of a value and divides the result by |
Asin(BigRational) | Computes the arc-sine of a value. |
Asin(BigRational, Int32) | Returns the angle whose sine is the specified number. |
Asinh(BigRational) | Computes the hyperbolic arc-sine of a value. |
Asinh(BigRational, Int32) | Computes the hyperbolic arc-sine of a value. |
AsinPi(BigRational) | Computes the arc-sine of a value and divides the result by |
AsinPi(BigRational, Int32) | Computes the arc-sine of a value and divides the result by |
Atan(BigRational) | Computes the arc-tangent of a value. |
Atan(BigRational, Int32) | Returns the angle whose tangent is the specified number. |
Atan2(BigRational, BigRational) | Computes the arc-tangent of the quotient of two values. |
Atan2(BigRational, BigRational, Int32) | Returns the angle whose tangent is the quotient of two specified numbers. |
Atan2Pi(BigRational, BigRational) | Computes the arc-tangent of the quotient of two values and divides the result by pi. |
Atanh(BigRational) | Computes the hyperbolic arc-tangent of a value. |
Atanh(BigRational, Int32) | Computes the hyperbolic arc-tangent of a value. |
AtanPi(BigRational) | Computes the arc-tangent of a value and divides the result by pi. |
AtanPi(BigRational, Int32) | Computes the arc-tangent of a value and divides the result by pi. |
Cbrt(BigRational) | Computes the cube-root of a value. |
Cbrt(BigRational, Int32) | Computes the cube-root of a value. |
Ceiling(BigRational) | Returns the smallest integral value that is greater than or equal to the specified number. |
Clamp(BigRational, BigRational, BigRational) | Clamps a value to an inclusive minimum and maximum value. |
CompareTo(Int64) | Compares this instance to a second System.Int64 and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object. |
CompareTo(BigRational) | Compares this instance to a second BigRational and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object. |
CompareTo(Object) | Compares this object to another object, returning an instance of System.Relation. |
CopySign(BigRational, BigRational) | Copies the sign of a value to the sign of another value.. |
Cos(BigRational) | Computes the cosine of a value. |
Cos(BigRational, Int32) | Returns the cosine of the specified angle. |
Cosh(BigRational) | Computes the hyperbolic cosine of a value. |
Cosh(BigRational, Int32) | Computes the hyperbolic cosine of a value. |
CosPi(BigRational) | Computes the cosine of a value that has been multipled by |
CosPi(BigRational, Int32) | Computes the cosine of a value that has been multipled by |
CreateChecked<TOther>(TOther) | |
CreateSaturating<TOther>(TOther) | |
CreateTruncating<TOther>(TOther) | |
Equals(Int64) | Returns a value that indicates whether the current instance and a specified System.Int64 number have the same value. |
Equals(BigRational) | Returns a value that indicates whether the current instance and a specified BigRational number have the same value. |
Equals(Object) | Returns a value that indicates whether the current instance and a specified object have the same value. |
Exp(BigRational) | Computes |
Exp(BigRational, Int32) | Returns e raised to the specified power. |
Exp10(BigRational) | Computes |
Exp10M1(BigRational) | Computes |
Exp2(BigRational) | Computes |
Exp2M1(BigRational) | Computes |
ExpM1(BigRational) | Computes |
Factorial(Int32) | Calculates the factorial of |
Floor(BigRational) | Rounds a specified BigRational number to the closest integer toward negative infinity. |
GetHashCode() | Returns the hash code for the current BigRational number. |
Hypot(BigRational, BigRational) | Computes the hypotenuse given two values representing the lengths of the shorter sides in a right-angled triangle. |
Hypot(BigRational, BigRational, Int32) | Computes the hypotenuse given two values representing the lengths of the shorter sides in a right-angled triangle. |
ILog10(BigRational) | Gets the integer base 10 logarithm of a BigRational number. |
ILog2(BigRational) | Gets the integer base 2 logarithm of a BigRational number. |
ILogB(BigRational) | Computes the integer logarithm of a value. |
IsInteger(BigRational) | Returns a value indicating whether the specified number is an integer. |
IsNaN(BigRational) | Determines if the value is NaN. |
Log(BigRational) | Computes the natural ( |
Log(BigRational, Int32) | Returns the natural (base e) logarithm of a specified number. |
Log(BigRational, BigRational, Int32) | Computes the logarithm of a value in the specified base. |
Log10(BigRational) | Computes the base-10 logarithm of a value. |
Log10(BigRational, Int32) | Returns the base 10 logarithm of a specified number. |
Log10P1(BigRational) | Computes the base-10 logarithm of a value plus one. |
Log2(BigRational) | Computes the base-2 logarithm of a value. |
Log2(BigRational, Int32) | Returns the base 2 logarithm of a specified number. |
Log2P1(BigRational) | Computes the base-2 logarithm of a value plus one. |
LogP1(BigRational) | Computes the natural ( |
Max(BigRational, BigRational) | Returns the larger of two BigRational numbers. |
MaxMagnitude(BigRational, BigRational) | Compares two values to compute which is greater. |
MaxMagnitudeNumber(BigRational, BigRational) | Compares two values to compute which has the greater magnitude and returning the other value if an input is |
Min(BigRational, BigRational) | Returns the smaller of two BigRational numbers. |
MinMagnitude(BigRational, BigRational) | Compares two values to compute which is lesser. |
MinMagnitudeNumber(BigRational, BigRational) | Compares two values to compute which has the lesser magnitude and returning the other value if an input is |
NumDen(BigRational) | Returns the numerator and the denominator of the specified number. |
NumDen(BigRational, out BigRational.Integer) | Returns the Numerator and the Denominator of the specified number. |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
op_CheckedExplicit(BigRational) | |
Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider) | Parses a span of characters into a value. |
Parse(ReadOnlySpan<Char>, IFormatProvider) | Converts the representation of a number, contained in the specified read-only span of characters to its BigRational equivalent. |
Parse(String, NumberStyles, IFormatProvider) | Parses a string into a value. |
Parse(String, IFormatProvider) | Parses a string into a value. |
Pi() | Calculates π rounded to MaxDigits. |
Pi(Int32) | Calculates π rounded to the specified number of decimal digits. |
Pow(Int32, Int32) | Returns a specified number raised to the specified power. |
Pow(BigRational, Int32) | Returns a specified number raised to the specified power. |
Pow(BigRational, BigRational) | Computes a value raised to a given power. |
Pow(BigRational, BigRational, Int32) | Returns a specified number raised to the specified power. |
Pow2(BigRational, Int32) | Returns a specified number raised to the specified power. |
ReadFromBytes(ref ReadOnlySpan<Byte>) | Initializes a new instance of the BigRational structure using the values in a read-only span of bytes. |
RootN(BigRational, Int32) | Computes the n-th root of a value. |
RootN(BigRational, Int32, Int32) | Computes the n-th root of a value. |
Round(BigRational) | Rounds a BigRational number to the nearest integral value and rounds midpoint values to the nearest even number. |
Round(BigRational, Int32) | Rounds a BigRational number to a specified number of fractional digits, and rounds midpoint values to the nearest even number. |
Round(BigRational, Int32, MidpointRounding) | Rounds a BigRational number to a specified number of fractional digits using the specified rounding convention. |
Sign(BigRational) | Gets a System.Int32 number that indicates the sign (negative, positive, or zero) of a BigRational number. |
Sin(BigRational) | Computes the sine of a value. |
Sin(BigRational, Int32) | Returns the sine of the specified angle. |
SinCos(BigRational) | Computes the sine and cosine of a value. |
SinCosPi(BigRational) | Computes the sine and cosine of a value that has been multiplied by |
Sinh(BigRational) | Computes the hyperbolic sine of a value. |
Sinh(BigRational, Int32) | Computes the hyperbolic sine of a value. |
SinPi(BigRational) | Computes the sine of a value that has been multiplied by |
SinPi(BigRational, Int32) | Computes the sine of a value that has been multiplied by |
Sqrt(BigRational) | Computes the square-root of a value. |
Sqrt(BigRational, Int32) | Returns the square root of a specified number. |
Tan(BigRational) | Computes the tangent of a value. |
Tan(BigRational, Int32) | Returns the tangent of the specified angle. |
Tanh(BigRational) | Computes the hyperbolic tangent of a value. |
Tanh(BigRational, Int32) | Computes the hyperbolic tangent of a value. |
TanPi(BigRational) | Computes the tangent of a value that has been multipled by |
TanPi(BigRational, Int32) | Computes the tangent of a value that has been multipled by |
Tau() | Calculates π rounded to MaxDigits. |
Tau(Int32) | Calculates the number of radians in one turn, specified by the constant, τ rounded to the specified number of decimal digits.. |
ToString() | |
ToString(String, IFormatProvider) | |
Truncate(BigRational) | Calculates the integral part of the BigRational number. |
TryFormat(Span<Char>, out Int32, ReadOnlySpan<Char>, IFormatProvider) | |
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, out BigRational) | Tries to parses a span of characters into a value. |
TryParse(ReadOnlySpan<Char>, IFormatProvider, out BigRational) | Parses a span of characters into a value. |
TryParse(String, NumberStyles, IFormatProvider, out BigRational) | Tries to parses a string into a value. |
TryParse(String, IFormatProvider, out BigRational) | Tries to parses a span of characters into a value. |
WriteToBytes(ref Span<Byte>) | Copies the value of this BigRational as little-endian twos-complement bytes. |
Operators
Name | Description |
---|---|
Addition(Int64, BigRational) | Adds the values of a specified System.Int64 and a BigRational number. |
Addition(BigRational, Int64) | Adds the values of a specified BigRational and a System.Int64 number. |
Addition(BigRational, BigRational) | Adds the values of two specified BigRational numbers. |
BitwiseOr(Nullable<BigRational>, BigRational) | Performs a bitwise Or operation on two BigRational values. |
Decrement(BigRational) | Decrements a BigRational value by one. |
Division(Int64, BigRational) | Divides the values of a specified System.Int64 and a BigRational number. |
Division(BigRational, Int64) | Divides the values of a specified BigRational and a System.Int64 number. |
Division(BigRational, BigRational) | Divides a specified BigRational value by another specified BigRational value. |
Equality(BigRational, Int64) | Returns a value that indicates whether a BigRational value and an System.Int64 value are equal. |
Equality(BigRational, BigRational) | Returns a value that indicates whether the values of two BigRational numbers are equal. |
Explicit(BigRational to Byte) | Defines an explicit conversion of a BigRational number to a System.Byte value. |
Explicit(BigRational to Char) | Defines an explicit conversion of a BigRational number to a System.Char value. |
Explicit(BigRational to Decimal) | Defines an explicit conversion of a BigRational number to a System.Decimal value. |
Explicit(BigRational to Double) | Defines an explicit conversion of a BigRational number to a System.Double value. |
Explicit(BigRational to Half) | Defines an explicit conversion of a BigRational number to a System.Half value. |
Explicit(BigRational to Int128) | Defines an explicit conversion of a BigRational number to a System.Int128 value. |
Explicit(BigRational to Int16) | Defines an explicit conversion of a BigRational number to a System.Int16 value. |
Explicit(BigRational to Int32) | Defines an explicit conversion of a BigRational number to a System.Int32 value. |
Explicit(BigRational to Int64) | Defines an explicit conversion of a BigRational number to a System.Int64 value. |
Explicit(BigRational to IntPtr) | Defines an explicit conversion of a BigRational number to a System.IntPtr value. |
Explicit(BigRational to BigInteger) | Defines an explicit conversion of a BigRational number to a System.Numerics.BigInteger value. |
Explicit(BigRational to ReadOnlySpan<UInt32>) | Defines an explicit access to the internal data representation of a BigRational number. |
Explicit(BigRational to NFloat) | Defines an explicit conversion of a BigRational number to a System.Runtime.InteropServices.NFloat value. |
Explicit(BigRational to SByte) | Defines an explicit conversion of a BigRational number to a System.SByte value. |
Explicit(BigRational to Single) | Defines an explicit conversion of a BigRational number to a System.Single value. |
Explicit(BigRational to UInt128) | Defines an explicit conversion of a BigRational number to a System.UInt128 value. |
Explicit(BigRational to UInt16) | Defines an explicit conversion of a BigRational number to a System.UInt16 value. |
Explicit(BigRational to UInt32) | Defines an explicit conversion of a BigRational number to a System.UInt32 value. |
Explicit(BigRational to UInt64) | Defines an explicit conversion of a BigRational number to a System.UInt64 value. |
Explicit(BigRational to UIntPtr) | Defines an explicit conversion of a BigRational number to a System.UIntPtr value. |
Explicit(String to BigRational) | Defines an explicit conversion of a System.String object to a BigRational value. |
GreaterThan(BigRational, Int64) | Returns a value that indicates whether a BigRational value is greater than an System.Int64 value. |
GreaterThan(BigRational, BigRational) | Returns a value that indicates whether a BigRational value is greater than another BigRational value. |
GreaterThanOrEqual(BigRational, Int64) | Returns a value that indicates whether a BigRational value is greater than or equal to an System.Int64 value. |
GreaterThanOrEqual(BigRational, BigRational) | Returns a value that indicates whether a BigRational value is greater than or equal to another BigRational value. |
Implicit(Byte to BigRational) | Defines an implicit conversion of a System.Byte object to a BigRational value. |
Implicit(Char to BigRational) | Defines an implicit conversion of a System.Char object to a BigRational value. |
Implicit(Decimal to BigRational) | Defines an implicit conversion of a System.Decimal object to a BigRational value. |
Implicit(Double to BigRational) | Defines an implicit conversion of a System.Double object to a BigRational value. |
Implicit(Half to BigRational) | Defines an implicit conversion of a System.Half object to a BigRational value. |
Implicit(Int128 to BigRational) | Defines an implicit conversion of a System.Int128 object to a BigRational value. |
Implicit(Int16 to BigRational) | Defines an implicit conversion of a System.Int16 object to a BigRational value. |
Implicit(Int32 to Nullable<BigRational>) | Defines an implicit conversion of a System.Int32 object to a BigRational value. |
Implicit(Int32 to BigRational) | Defines an implicit conversion of a System.Int32 object to a BigRational value. |
Implicit(Int64 to BigRational) | Defines an implicit conversion of a System.Int64 object to a BigRational value. |
Implicit(IntPtr to BigRational) | Defines an implicit conversion of a System.IntPtr object to a BigRational value. |
Implicit(BigInteger to BigRational) | Defines an implicit conversion of a System.Numerics.BigInteger object to a BigRational value. |
Implicit(NFloat to BigRational) | Defines an implicit conversion of a System.Runtime.InteropServices.NFloat object to a BigRational value. |
Implicit(SByte to BigRational) | Defines an implicit conversion of a System.SByte object to a BigRational value. |
Implicit(Single to BigRational) | Defines an implicit conversion of a System.Single object to a BigRational value. |
Implicit(UInt128 to BigRational) | Defines an implicit conversion of a System.UInt128 object to a BigRational value. |
Implicit(UInt16 to BigRational) | Defines an implicit conversion of a System.UInt16 object to a BigRational value. |
Implicit(UInt32 to BigRational) | Defines an implicit conversion of a System.UInt32 object to a BigRational value. |
Implicit(UInt64 to BigRational) | Defines an implicit conversion of a System.UInt64 object to a BigRational value. |
Implicit(UIntPtr to BigRational) | Defines an implicit conversion of a System.UIntPtr object to a BigRational value. |
Increment(BigRational) | Increments a BigRational value by one. |
Inequality(BigRational, Int64) | Returns a value that indicates whether a BigRational value and an System.Int64 value are not equal. |
Inequality(BigRational, BigRational) | Returns a value that indicates whether two BigRational numbers have different values. |
LessThan(BigRational, Int64) | Returns a value that indicates whether a BigRational value is less than an System.Int64 value. |
LessThan(BigRational, BigRational) | Returns a value that indicates whether a BigRational value is less than another BigRational value. |
LessThanOrEqual(BigRational, Int64) | Returns a value that indicates whether a BigRational value is less than or equal to an System.Int64 value. |
LessThanOrEqual(BigRational, BigRational) | Returns a value that indicates whether a BigRational value is less than or equal to another BigRational value. |
Modulus(BigRational, BigRational) | Returns the remainder that results from division with two specified BigRational values. |
Multiply(Int64, BigRational) | Multiplies the values of a specified System.Int64 and a BigRational number. |
Multiply(BigRational, Int64) | Multiplies the values of a specified BigRational and a System.Int64 number. |
Multiply(BigRational, BigRational) | Multiplies two specified BigRational values. |
Subtraction(Int64, BigRational) | Subtracts the values of a specified System.Int64 from another BigRational value. |
Subtraction(BigRational, Int64) | Subtracts the values of a specified BigRational from another System.Int64 value. |
Subtraction(BigRational, BigRational) | Subtracts a BigRational value from another BigRational value. |
UnaryNegation(BigRational) | Negates a specified BigRational value. |
UnaryPlus(BigRational) | Returns the value of the BigRational operand. (The sign of the operand is unchanged.) |