modular-arithmetic alternatives and similar packages
Based on the "Math" category.
Alternatively, view modular-arithmetic alternatives based on common mentions on social networks and blogs.
-
vector
An efficient implementation of Int-indexed arrays (both mutable and immutable), with a powerful loop optimisation framework . -
subhask
Type safe interface for working in subcategories of Hask -
statistics
A fast, high quality library for computing with statistics in Haskell. -
what4
Symbolic formula representation and solver interaction library -
HerbiePlugin
GHC plugin that improves Haskell code's numerical stability -
hgeometry
HGeometry is a library for computing with geometric objects in Haskell. It defines basic geometric types and primitives, and it implements some geometric data structures and algorithms. The main two focusses are: (1) Strong type safety, and (2) implementations of geometric algorithms and data structures that have good asymptotic running time guarantees. -
dimensional
Dimensional library variant built on Data Kinds, Closed Type Families, TypeNats (GHC 7.8+). -
hermit
Haskell Equational Reasoning Model-to-Implementation Tunnel -
computational-algebra
General-Purpose Computer Algebra System as an EDSL in Haskell -
mwc-random
A very fast Haskell library for generating high quality pseudo-random numbers. -
matrix
A Haskell native implementation of matrices and their operations. -
lambda-calculator
An introduction to the Lambda Calculus -
numhask
A haskell numeric prelude, providing a clean structure for numbers and operations that combine them. -
vector-space
Vector & affine spaces, linear maps, and derivatives -
poly
Fast polynomial arithmetic in Haskell (dense and sparse, univariate and multivariate, usual and Laurent) -
cf
"Exact" real arithmetic for Haskell using continued fractions (Not formally proven correct) -
optimization
Some numerical optimization methods implemented in Haskell -
bayes-stack
Framework for Gibbs sampling of probabilistic models -
rampart
:european_castle: Determine how intervals relate to each other. -
equational-reasoning
Agda-style equational reasoning in Haskell -
safe-decimal
Safe and very efficient arithmetic operations on fixed decimal point numbers -
bed-and-breakfast
Matrix operations in 100% pure Haskell -
simple-smt
A simple way to interact with an SMT solver process. -
monte-carlo
A Monte Carlo monad and transformer for Haskell. -
sbvPlugin
Formally prove properties of Haskell programs using SBV/SMT. -
monoid-subclasses
Subclasses of Monoid with a solid theoretical foundation and practical purposes -
eigen
Haskel binding for Eigen library. Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms. -
polynomial
Haskell library for manipulating and evaluating polynomials -
manifold-random
Coordinate-free hypersurfaces as Haskell types
Collect and Analyze Billions of Data Points in Real Time
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of modular-arithmetic or a related project?
README
Modular Arithmetic
This package provides a type for integers modulo some constant, usually written as ℤ/n.
Here is a quick example:
>>> 10 * 11 :: ℤ/7
5
It also works correctly with negative numeric literals:
>>> (-10) * 11 :: ℤ/7
2
Modular division is an inverse of modular multiplication. It is defined when divisor is coprime to modulus:
>>> 7 `div` 3 :: ℤ/16
13
>>> 3 * 13 :: ℤ/16
7