19 packages tagged with “rational”
Contains a Rational class for working with rational numbers without floating point errors. Also contains some useful mathematical functions, such as GCD.
UltimateOrb Base Class Library.
Arbitrary precision rational number class. Stores the numerator and denominator.
The GMP Native Interface for .NET Library exposes to .NET (through P-Invoke and .NET types) all of the functionality of the GNU MP Library (version 6.1.2). It automatically loads at runtime the 32-bit or 64-bit GNU MP library that matches the current CPU architecture, thus allowing building Visual Studio Projects for AnyCPU, x86, or x64. It is based on the GNU MP "fat" build which automatically detects the current CPU type, and selects any available assembly language code optimization for that CPU, thus providing optimal performance. Documentation with sample usage is given at the Project URL. GNU MP is at https://gmplib.org/. Supported Platform: .NET Framework 4.0+
Rational number arithmetic in C#
BigRational based on a stack machine to create an arbitrary-precision rational number type. Provides constants and functions for power, root, trigonometric, exponential, logarithmic, trigonometric, hyperbolic and other common mathematical functions.
Features: 1) Automatically simplifies the fraction. 2) Fraction can be represented in form of Mixed Fraction. 3) Supports undefined values (Undefined,+Infinity,-Infinity). 4) Data type BigInteger is used and can store all possible rational numbers. 5) String-Fraction conversion (ToString() or TryParse()). 6) Supports comparisons, conversions and operations. 7) New "Like" operator to check if two numbers are similar. e.g (3.14 Like 22/7) returns true. 8) Open source. (https://github.com/ZdsAlpha/Fraction)
An arbitrary size and precision rational number stored using two BigIntegers.
Data types: - arbitrary precision rational numbers Matrix algebra (integer, rational): - Row echelon form - Smith normal form - Kernel, cokernel and (pseudo-)inverse Matrix decomposition (floating point): - Principal component analysis (PCA) - ZCA whitening Misc: - Bezout's identity - Loading of NumPy's .npy and .npz files.
The MPFR Native Interface for .NET Library exposes to .NET (through P-Invoke and .NET types) all of the functionality of the GNU MPFR Library (version 4.0.0). It automatically loads at runtime the 32-bit or 64-bit GNU MPFR library that matches the current CPU architecture, thus allowing building Visual Studio Projects for AnyCPU, x86, or x64. It is based on the GNU MPFR "fat" build which automatically detects the current CPU type, and selects any available assembly language code optimization for that CPU, thus providing optimal performance. Because GNU MPFR depends on GNU MP (https://gmplib.org/), this package depends on the Math.Gmp.Native.NET package which exposes all of the GNU MP library (version 6.1.2). Documentation with sample usage is given at the Project URL. GNU MPFR is at http://www.mpfr.org/. Supported Platform: .NET Framework 4.0+
Vector math library
Pure interfaces for policy-based rational arithmetic and generic math.
Checked/unchecked arithmetic policy implementations and supporting models for rational arithmetic.
Policy-based rational arithmetic algorithms with minimal dependencies.
Library for using big decimal and rational numbers with System.Numerics.BigInteger
Convenience wrappers over the core rational algorithms using .NET generic math constraints.
Generic Rational<T> for any IBinaryInteger<T>, fully integrated with .NET generic math. Arbitrary-precision rational arithmetic via BigIntegerRational.
High-precision rational number library for .NET
.NET library for studying and working with elliptic curves (with LMFDB integration).