LongCalc 0.4.8
LongCalc Arbitrary Precision Float and Complex Number Library
See the version list below for details.
InstallPackage LongCalc Version 0.4.8
dotnet add package LongCalc version 0.4.8
<PackageReference Include="LongCalc" Version="0.4.8" />
paket add LongCalc version 0.4.8
Release Notes
Unsigned Assembly
Throw an error on ('type')x for a bf or bcr x, when x is out of range of type 'type'. The user should be aware that no such error is thrown for an integertype explicit cast ('type')x for an mpz_t x.
The longtompz_t and mpz_ttolong Mpz_tVal and LongVal conversion functions have been redone in such a way that parsing of strings for numeric value is avoided.
Correct an inefficiency in x.toString and x.Round for x very large or x near 1 and Precision large.
Added an optional parameter ZeroOrPiMatchPrecision to the trigonometric functions which, if greater than 0, returns (as appropriate) 1, 0, or 1 if the input matches a multiple of Pi/2 to ZeroOrPiMatchPrecision decimal digits.
A likely natural limitation (of which I am not certain) on the underlying Mpir.NET software is that the bitlength of an mpz_t variable cannot be greater than long.MaxValue. Operating under this assumption, the Bitlength, doBitlength, doIndexofOne are made to be of type long. The shiftLeft and shiftRight functions 'shift' parameter is now of type long.
The bf object is modified such that x.mant is now readonly for a bf x, and an internal long parameter 'BL' equal to x.Bitlength is included and tracked. BL is then recalculated on the conclusion of any bf Add, Subtract, Multiply, or Divide or any 'new bf(...)' (other than 'new bf(x)' for a bf 'x'). This approach turns out to result in increased efficiency since the commonly used functions FloorLog2(x) and Log..(x) (among others) use the bitlength value. Operating under the assumption that an mpz_t Add, Subtract, Multiply or Divide result is (however briefly) fully contained in Process Memory, an estimate of the corresponding bf calculation memory requirements is made. If that estimate indicates the BL limitation would be exceeded, an error is thrown. If the estimate exceeds 3 gigabytes, garbage collection is forced and then memory availability is checked and an error is thrown if available memory is insufficient for the operation. This approach avoids the problem of an impasse which previously occurred in situations such as x.Add(y) when x is very large (or very small) compared to y (for bf 'x' and 'y').
Checks for arithmetic overflow or underflow are again compilerincluded in this release.
Dependencies

 Mpir.NET (>= 0.4.0)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version  Downloads  Last updated  

0.5.29  71  10/15/2020  
0.5.28  81  9/24/2020  
0.5.27  114  9/18/2020  
0.5.26  158  9/17/2020  
0.5.25  89  9/6/2020  
0.5.24  92  8/25/2020  
0.5.23  114  8/5/2020  
0.5.22  389  7/31/2020  
0.5.21  347  7/30/2020  
0.5.20  107  7/29/2020  
0.5.19  100  7/28/2020  
0.5.18  125  5/22/2020  
0.5.17  112  5/19/2020  
0.5.16  124  5/17/2020  
0.5.15  141  5/17/2020  
0.5.14  102  5/11/2020  
0.5.13  212  5/3/2020  
0.5.12  288  4/4/2020  
0.5.11  136  3/31/2020  
0.5.10  191  2/13/2020  
0.5.9  207  2/8/2020  
0.5.8  205  2/5/2020  
0.5.7  281  1/21/2020  
0.5.6  162  11/27/2019  
0.5.5  152  11/16/2019  
0.5.4  145  11/7/2019  
0.5.3  158  11/2/2019  
0.5.2  165  10/21/2019  
0.5.1  387  7/29/2019  
0.4.12  385  6/15/2019  
0.4.11  386  6/10/2019  
0.4.10  385  5/13/2019  
0.4.9  410  4/15/2019  
0.4.8  408  4/7/2019  
0.4.7  397  3/23/2019  
0.4.6  403  3/4/2019  
0.4.5  410  3/4/2019  
0.4.4  416  2/10/2019  
0.4.3  468  1/30/2019  
0.4.2  470  1/29/2019  
0.4.1  468  1/29/2019  
0.3.25  404  3/25/2019  
0.3.24  399  3/4/2019  
0.3.23  489  1/25/2019  
0.3.22  502  1/23/2019  
0.3.21  534  1/12/2019  
0.3.20  527  1/4/2019  
0.3.19  503  1/3/2019  
0.3.18  492  12/30/2018  
0.1.25  398  3/25/2019  
0.1.24  409  3/4/2019  
0.1.23  548  1/12/2019  
0.1.22  490  12/24/2018  
0.1.21  770  4/20/2018  
0.1.16  670  9/2/2017  
0.1.15  637  8/23/2017  
0.1.11  571  8/4/2017  
0.1.10  639  8/1/2017  
0.1.8  564  7/27/2017  
0.1.7  607  6/14/2017  
0.1.6  589  6/14/2017  
0.1.5  657  6/10/2017  
0.1.2  850  11/22/2016  
0.1.1  660  11/12/2016 