A binding of MPFR and MPIR (Multiple Precision Floating-Point and Integer) for .NET.
This binding is up to date with version 4.2.1 of the mpfr library.
- Install Visual Studio 2022.
- Clone this repository locally.
- Open
MpfrDotNet.slnwith Visual Studio 2022. - Select the
DebugorReleasebuild in the toolbar. - Rebuild the solution (F5 or from the Build / Rebuild Solution menu).
Resulting files are in the MpfrDotNet\bin\x64 subdirectory:
- mpfr.dll, for multiple precision floating-point support.
- mpir.dll, for multiple precision integer and rational support.
- The MpfrDotNet assembly.
This project is also available as a package. See the right pane of the project page for links.
The package includes:
- In the
MpfrDotNetnamespace.mpfrstatic class with bindings to almost all functions listed in the MPFR documentation.mpfr_tan implementation of a Multiple Precision Floating-Point type.
- In the
MpirDotNetnamespace.mpirstatic class with bindings to almost all functions listed in the MPIR documentation.mpz_tan implementation of a Multiple Precision Integer type.mpq_tan implementation of a Multiple Precision Rational type.mpf_tan implementation of a Multiple Precision Floating-Point type. This type has less features than the more completempfr_t.