Popularity
7.6
Stable
Activity
0.1

27
2
7
Monthly Downloads: 81
Programming language: Haskell
License: BSD 3clause "New" or "Revised" License
Tags:
Math
Latest version: v1.2.1.5
modulararithmetic alternatives and similar packages
Based on the "Math" category.
Alternatively, view modulararithmetic alternatives based on common mentions on social networks and blogs.

vector
An efficient implementation of Intindexed 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 
computationalalgebra
GeneralPurpose Computer Algebra System as an EDSL in Haskell 
mwcrandom
A very fast Haskell library for generating high quality pseudorandom numbers. 
hermit
Haskell Equational Reasoning ModeltoImplementation Tunnel 
dimensional
Dimensional library variant built on Data Kinds, Closed Type Families, TypeNats (GHC 7.8+). 
matrix
A Haskell native implementation of matrices and their operations. 
numhask
A haskell numeric prelude, providing a clean structure for numbers and operations that combine them. 
vectorspace
Vector & affine spaces, linear maps, and derivatives 
bayesstack
Framework for Gibbs sampling of probabilistic models 
cf
"Exact" real arithmetic for Haskell using continued fractions (Not formally proven correct) 
poly
Fast polynomial arithmetic in Haskell (dense and sparse, univariate and multivariate, usual and Laurent) 
optimization
Some numerical optimization methods implemented in Haskell 
montecarlo
A Monte Carlo monad and transformer for Haskell. 
safedecimal
Safe and very efficient arithmetic operations on fixed decimal point numbers 
equationalreasoning
Agdastyle equational reasoning in Haskell 
sbvPlugin
Formally prove properties of Haskell programs using SBV/SMT. 
bedandbreakfast
Matrix operations in 100% pure Haskell 
simplesmt
A simple way to interact with an SMT solver process. 
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 
lambdacalculator
An introduction to the Lambda Calculus 
hTensor
Multidimensional arrays and simple tensor computations 
diagramssolve
Miscellaneous solver code for diagrams (lowdegree polynomials, tridiagonal matrices) 
manifoldrandom
Coordinatefree hypersurfaces as Haskell types 
vectorthunbox
Deriver for unboxed vectors using Template Haskell
Scout APM: A developer's best friend. Try free for 14days
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Promo
scoutapm.com
* 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 modulararithmetic 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