LongCalc 0.3.22

LongCalc Arbitrary Precision Float and Complex Number Library

LongCalc Arbitrary Precision Float and Complex Number Library

There is a newer version of this package available.
See the version list below for details.
Install-Package LongCalc -Version 0.3.22
dotnet add package LongCalc --version 0.3.22
paket add LongCalc --version 0.3.22
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Unsigned Assembly

Some further investigation was done into the curious output of Mpir.NET functions such as .BitLength, .IndexOfOne, etc which could return negative results. Eventually (like about now), an understanding arose as to what those values represented and how to interpret them. In previous versions my interpretation was flat-out wrong. As a results, inaccurate results for most any of the LongCalc functions were bound to happen if the Precision setting was high enough or the output values were of high enough order of magnitude.

With this version, those errors have hopefully been resolved. I have included my own x.Bitlength property function which returns a long data type whose value might be more understandable to me. The GlobalAllowAddTruncates parameter is now gone since the x.Add function problems have been resolved. bf mantissa widths up to 2 ^ long.MaxValue bits should work, and the problem of x.Floor() function failures should be over and the x.Normalize1() function problems resolved.

In addition, functions 'public static long LongVal(mpz_t x)' and 'public static mpz_t Mpz_tVal(long x)' have been added to facilitate changes between mpz_t and long data types, as Mpir.NET version 0.4.0 has difficulties with long input data for mpz_t type initialization, casts from mpz_t to long, and comparison operators or functions between mpz_t and long values.

Also, the x.Round and x.toString functions are much faster now for the most part.

In this version also: the bf, bcr, and bcp data type intializer functions which had a boolean CloneMant parameter are gone as a bad idea in the first place.

The bad news: In this version, any attempts at x.Exp for x larger than about 1.E+9 will likely bring this software to a slow-motion crash, while x.Exp in previous versions for x even as large as 6.E+18 might quickly produce results, but they are quite possibly wrong results.

Checks for arithmetic overflow or underflow are again compiler-included in this release.

Version History

Version Downloads Last updated
0.4.7 0 3/23/2019
0.4.6 44 3/4/2019
0.4.5 33 3/4/2019
0.4.4 42 2/10/2019
0.4.3 63 1/30/2019
0.4.2 60 1/29/2019
0.4.1 59 1/29/2019
0.3.24 34 3/4/2019
0.3.23 71 1/25/2019
0.3.22 78 1/23/2019
0.3.21 86 1/12/2019
0.3.20 95 1/4/2019
0.3.19 82 1/3/2019
0.3.18 106 12/30/2018
0.1.24 34 3/4/2019
0.1.23 124 1/12/2019
0.1.22 92 12/24/2018
0.1.21 320 4/20/2018
0.1.16 235 9/2/2017
0.1.15 205 8/23/2017
0.1.11 189 8/4/2017
0.1.10 217 8/1/2017
0.1.8 187 7/27/2017
0.1.7 213 6/14/2017
0.1.6 197 6/14/2017
0.1.5 244 6/10/2017
0.1.2 364 11/22/2016
0.1.1 238 11/12/2016
Show less