LongCalc Arbitrary Precision Float and Complex Number Library
See the version list below for details.
Install-Package LongCalc -Version 0.4.1
dotnet add package LongCalc --version 0.4.1
<PackageReference Include="LongCalc" Version="0.4.1" />
paket add LongCalc --version 0.4.1
With this version, the bf 'twoexp' parameter has been made of type 'mpz_t'. x.Exp will return results for x less or equal 1.e+1035 and a restriction on x.Exp that x be no more than 1.0e+1035 has been implemented. x.Gamma will return results for x less or equal 1.e+1031.
There is a new x.toString function with a parameter which permits to 'Prettify' the output's exponent.
Public function outputs for this version as well as 0.3.23.0 are Truncate'd to 4 decimal digits + the applicable Precision. This is essentially 2 base 64 digits' worth, and permits more reliable rounding in the .toString and .Round functions.
Although the magnitude of possible outputs from various functions in this version, as well as the flexibility of the mpz_t twoexp, might lead one to believe that nearly any supported operation is possible with this version, such is not the case. For example, users will likely have to check their inputs for any use of the bf x.Add or x.Subtract functions. This version provides no such checks. An attempt like (for x = 1.0e+1035) 'x.Exp().Add(1)' is not trivial since performing the Add function would require one addend's shift by a garagantuan amount, an operation beyond the scope of most computers and likely the software as well, even if the addend's mantissa is relatively short. The likely outcome is for the computer to exhaust all available memory and/or cache space before bringing that machine to an impasse.
Checks for arithmetic overflow or underflow are again compiler-included in this release.
- Mpir.NET (>= 0.4.0)
This package is not used by any popular GitHub repositories.