LongCalc 0.5.1

LongCalc Arbitrary Precision Float and Complex Number Library

Install-Package LongCalc -Version 0.5.1
dotnet add package LongCalc --version 0.5.1
<PackageReference Include="LongCalc" Version="0.5.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LongCalc --version 0.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Unsigned Assembly

This version reverses some foolish changes to the trigonometric functions which first showed up in version 0.4.10. The code used to replace those functions is from version 0.4.7 with some slight modification to accomodate the ZeroOrPiMatchPrecision parameter.

This release provides the capability to replace the following core constants, which would otherwise be calculated as needed, by uploading text files containing the replacement values: PI, Log(2), and Log(10). The function names are: GetPIFromFile, GetLog2FromFile, GetLog10FromFile and require supplying accurate Base, Base10Precision, and FilePath. The queryable booleans PiIsFromFile, Log2IsFromFile, and Log10IsFromFile provide verification as to the source of the current values (whether uploaded or internally calculated).

Another change is to correct inaccurate results in x.Exp(Precision) when x is large compared to Precision and in x.BesselJ(alpha, Precision) when x is large. The change required that, for example, if x is input as "new bf(string x0..., long Precision)" where x0 is written as ".1E+1000" and Precision is 100, x is computed to a precision of at least 1000. For the case of BesselJ, the change made was to compute x to a precision of an extra 1000 digits. It is then up to the user to make sure that the precision required for Exp or BesselJ is maintained at least at this level through whatever intervening functions are applied.

The reason for the use of version number 0.5.x rather than a 0.4.x series number however, is to indicate a change which could create unfavorable results for users seeking to use existing code or writing new code and finding intractable problems. With this version, the objects bf, bcr, and bcp have changed from being C# struct(s) to being C# class(es). As a result, the limitation in prior releases that required bf objects have mpz_t components with bitlength no more than 17179869120, and hence Base10 Precision no more than 5171655000, is gone. The thing to watch for when using the current release is that, although you may have a function 'static bf FunctionName(bf x, bf y)' for example, indicating that x and y are passed by value, you will find that changes to x or y internal to FunctionName may act as if you have really passed x and y by reference. To avoid these problems, it may be advisable to include, for the first code of the function, the line(s) x = new bf(x); y = new bf(y); . Similarly for bcr or bcp objects. This curious behavior has had me guessing for quite awhile in previous attempts to set up bf, bcr, and bcp as classes.

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

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.5.1 236 7/29/2019
0.4.12 241 6/15/2019
0.4.11 250 6/10/2019
0.4.10 253 5/13/2019
0.4.9 284 4/15/2019
0.4.8 274 4/7/2019
0.4.7 270 3/23/2019
0.4.6 274 3/4/2019
0.4.5 282 3/4/2019
0.4.4 281 2/10/2019
0.4.3 302 1/30/2019
0.4.2 296 1/29/2019
0.4.1 301 1/29/2019
0.3.25 264 3/25/2019
0.3.24 265 3/4/2019
0.3.23 315 1/25/2019
0.3.22 320 1/23/2019
0.3.21 346 1/12/2019
0.3.20 353 1/4/2019
0.3.19 312 1/3/2019
0.3.18 322 12/30/2018
0.1.25 269 3/25/2019
0.1.24 279 3/4/2019
0.1.23 383 1/12/2019
0.1.22 320 12/24/2018
0.1.21 584 4/20/2018
0.1.16 479 9/2/2017
0.1.15 455 8/23/2017
0.1.11 413 8/4/2017
0.1.10 457 8/1/2017
0.1.8 410 7/27/2017
0.1.7 433 6/14/2017
0.1.6 428 6/14/2017
0.1.5 481 6/10/2017
0.1.2 641 11/22/2016
0.1.1 495 11/12/2016