Method | Description | |
---|---|---|
Abs ( this self ) : System.Numerics.BigInteger | ||
Abs ( this self ) : double | ||
AsInt32 ( this self, int &ret ) : bool | ||
AsInt64 ( this self, long &ret ) : bool | ||
BitLength ( |
||
BitLength ( System.Numerics.BigInteger x ) : int | ||
BitLength ( int x ) : int | ||
BitLength ( long x ) : int | ||
Conjugate ( this self ) : System.Numerics.Complex | ||
Erf ( double v0 ) : double | ||
ErfComplement ( double v0 ) : double | ||
FloorDivideUnchecked ( int x, int y ) : int |
Calculates the quotient of two 32-bit signed integers rounded towards negative infinity. The caller must check for overflow (x = Int32.MinValue, y = -1) |
|
FloorDivideUnchecked ( long x, long y ) : long |
Calculates the quotient of two 32-bit signed integers rounded towards negative infinity. The caller must check for overflow (x = Int64.MinValue, y = -1) |
|
FloorRemainder ( int x, int y ) : int |
Calculates the remainder of floor division of two 32-bit signed integers.
|
|
FloorRemainder ( long x, long y ) : long |
Calculates the remainder of floor division of two 32-bit signed integers.
|
|
Gamma ( double v0 ) : double | ||
GetBitCount ( this self ) : int | ||
GetByteCount ( this self ) : int | ||
GetRandBits ( this generator, int bits ) : |
||
GetRandBits ( this generator, int bits ) : System.Numerics.BigInteger | ||
GetWordCount ( this self ) : int | ||
Hypot ( double x, double y ) : double | ||
Imaginary ( this self ) : double | ||
IsNegative ( this self ) : bool | ||
IsNegativeZero ( double self ) : bool | ||
IsPositive ( this self ) : bool | ||
IsZero ( this self ) : bool | ||
Log ( this self ) : double | ||
Log ( this self, double baseValue ) : double | ||
Log10 ( this self ) : double | ||
LogGamma ( double v0 ) : double | ||
MakeComplex ( double real, double imag ) : |
||
MakeComplex ( double real, double imag ) : System.Numerics.Complex | ||
MakeImaginary ( double imag ) : |
||
MakeImaginary ( double imag ) : System.Numerics.Complex | ||
MakeReal ( double real ) : |
||
MakeReal ( double real ) : System.Numerics.Complex | ||
ModPow ( this self, System.Numerics.BigInteger power, System.Numerics.BigInteger mod ) : System.Numerics.BigInteger | ||
ModPow ( this self, int power, System.Numerics.BigInteger mod ) : System.Numerics.BigInteger | ||
Pow ( this self, |
||
Pow ( this self, System.Numerics.Complex power ) : System.Numerics.Complex | ||
Power ( this self, int exp ) : System.Numerics.BigInteger | ||
Random ( this generator, |
||
Random ( this generator, System.Numerics.BigInteger limit ) : System.Numerics.BigInteger | ||
RoundAwayFromZero ( double value ) : double |
Behaves like Math.Round(value, MidpointRounding.AwayFromZero) Needed because CoreCLR doesn't support this particular overload of Math.Round
|
|
RoundAwayFromZero ( double value, int precision ) : double |
Behaves like Math.Round(value, precision, MidpointRounding.AwayFromZero) However, it works correctly on negative precisions and cases where precision is outside of the [-15, 15] range. (This function is also needed because CoreCLR lacks this overload.)
|
|
ToFloat64 ( this self ) : double | ||
ToString ( this self, int radix ) : string | ||
TryToFloat64 ( this self, double &result ) : bool |
Method | Description | |
---|---|---|
AbsSinPi ( double v0 ) : double |
A numerically precise version of |sin(v0 * pi)|
|
|
AppendRadix ( uint rem, uint radix, char tmp, StringBuilder buf, bool leadingZeros, bool lowerCase ) : void | ||
AsUInt32 ( this self, uint &ret ) : bool | ||
AsUInt64 ( this self, ulong &ret ) : bool | ||
BigIntegerToString ( uint d, int sign, int radix, bool lowerCase ) : string | ||
BitLengthUnsigned ( uint x ) : int | ||
BitLengthUnsigned ( ulong x ) : int | ||
EvalPolynomial ( double v0, double coeffs ) : double |
Evaluates a polynomial in v0 where the coefficients are ordered in increasing degree
|
|
EvalPolynomial ( double v0, double coeffs, bool reverse ) : double |
Evaluates a polynomial in v0 where the coefficients are ordered in increasing degree if reverse is false, and increasing degree if reverse is true.
|
|
GammaRationalFunc ( double v0 ) : double |
Take the quotient of the 2 polynomials forming the Lanczos approximation with N=13 and G=13.144565
|
|
GetHighestByte ( System.Numerics.BigInteger self, int &index, byte &byteArray ) : byte | ||
GetPowerOf10 ( int precision ) : double | ||
GetWord ( byte bytes, int start, int end ) : uint | ||
GetWord ( this self, int index ) : uint | ||
GetWords ( this self ) : uint[] | ||
PositiveGamma ( double v0 ) : double |
Computes the Gamma function on positive values, using the Lanczos approximation. Lanczos parameters are N=13 and G=13.144565.
|
|
PositiveLGamma ( double v0 ) : double |
Computes the Log-Gamma function on positive values, using the Lanczos approximation. Lanczos parameters are N=13 and G=13.144565.
|
|
SinPi ( double v0 ) : double |
A numerically precise version of sin(v0 * pi)
|
|
div ( uint n, int &nl, uint d ) : uint |
public static Abs ( this self ) : System.Numerics.BigInteger | ||
self | this | |
return | System.Numerics.BigInteger |
public static AsInt32 ( this self, int &ret ) : bool | ||
self | this | |
ret | int | |
return | bool |
public static AsInt64 ( this self, long &ret ) : bool | ||
self | this | |
ret | long | |
return | bool |
public static BitLength ( |
||
x | ||
return | int |
public static BitLength ( System.Numerics.BigInteger x ) : int | ||
x | System.Numerics.BigInteger | |
return | int |
public static Conjugate ( this self ) : System.Numerics.Complex | ||
self | this | |
return | System.Numerics.Complex |
public static ErfComplement ( double v0 ) : double | ||
v0 | double | |
return | double |
public static FloorDivideUnchecked ( int x, int y ) : int | ||
x | int | Dividend. |
y | int | Divisor. |
return | int |
public static FloorDivideUnchecked ( long x, long y ) : long | ||
x | long | Dividend. |
y | long | Divisor. |
return | long |
public static FloorRemainder ( int x, int y ) : int | ||
x | int | Dividend. |
y | int | Divisor. |
return | int |
public static FloorRemainder ( long x, long y ) : long | ||
x | long | Dividend. |
y | long | Divisor. |
return | long |
public static GetBitCount ( this self ) : int | ||
self | this | |
return | int |
public static GetByteCount ( this self ) : int | ||
self | this | |
return | int |
public static GetRandBits ( this generator, int bits ) : |
||
generator | this | |
bits | int | |
return |
public static GetRandBits ( this generator, int bits ) : System.Numerics.BigInteger | ||
generator | this | |
bits | int | |
return | System.Numerics.BigInteger |
public static GetWordCount ( this self ) : int | ||
self | this | |
return | int |
public static Hypot ( double x, double y ) : double | ||
x | double | |
y | double | |
return | double |
public static Imaginary ( this self ) : double | ||
self | this | |
return | double |
public static IsNegative ( this self ) : bool | ||
self | this | |
return | bool |
public static IsNegativeZero ( double self ) : bool | ||
self | double | |
return | bool |
public static IsPositive ( this self ) : bool | ||
self | this | |
return | bool |
public static Log ( this self, double baseValue ) : double | ||
self | this | |
baseValue | double | |
return | double |
public static LogGamma ( double v0 ) : double | ||
v0 | double | |
return | double |
public static MakeComplex ( double real, double imag ) : |
||
real | double | |
imag | double | |
return |
public static MakeComplex ( double real, double imag ) : System.Numerics.Complex | ||
real | double | |
imag | double | |
return | System.Numerics.Complex |
public static MakeImaginary ( double imag ) : |
||
imag | double | |
return |
public static MakeImaginary ( double imag ) : System.Numerics.Complex | ||
imag | double | |
return | System.Numerics.Complex |
public static MakeReal ( double real ) : |
||
real | double | |
return |
public static MakeReal ( double real ) : System.Numerics.Complex | ||
real | double | |
return | System.Numerics.Complex |
public static ModPow ( this self, System.Numerics.BigInteger power, System.Numerics.BigInteger mod ) : System.Numerics.BigInteger | ||
self | this | |
power | System.Numerics.BigInteger | |
mod | System.Numerics.BigInteger | |
return | System.Numerics.BigInteger |
public static ModPow ( this self, int power, System.Numerics.BigInteger mod ) : System.Numerics.BigInteger | ||
self | this | |
power | int | |
mod | System.Numerics.BigInteger | |
return | System.Numerics.BigInteger |
public static Pow ( this self, |
||
self | this | |
power | ||
return |
public static Pow ( this self, System.Numerics.Complex power ) : System.Numerics.Complex | ||
self | this | |
power | System.Numerics.Complex | |
return | System.Numerics.Complex |
public static Power ( this self, int exp ) : System.Numerics.BigInteger | ||
self | this | |
exp | int | |
return | System.Numerics.BigInteger |
public static Random ( this generator, |
||
generator | this | |
limit | ||
return |
public static Random ( this generator, System.Numerics.BigInteger limit ) : System.Numerics.BigInteger | ||
generator | this | |
limit | System.Numerics.BigInteger | |
return | System.Numerics.BigInteger |
public static RoundAwayFromZero ( double value ) : double | ||
value | double | |
return | double |
public static RoundAwayFromZero ( double value, int precision ) : double | ||
value | double | |
precision | int | |
return | double |
public static ToFloat64 ( this self ) : double | ||
self | this | |
return | double |
public static ToString ( this self, int radix ) : string | ||
self | this | |
radix | int | |
return | string |
public static TryToFloat64 ( this self, double &result ) : bool | ||
self | this | |
result | double | |
return | bool |