| Copyright | (c) 2018 Andrew Lelechenko |
|---|---|
| License | MIT |
| Maintainer | Andrew Lelechenko <andrew.lelechenko@gmail.com> |
| Stability | Provisional |
| Portability | Non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Math.NumberTheory.Moduli.Equations
Description
Polynomial modular equations.
Documentation
Find all solutions of ax + b ≡ 0 (mod m).
>>>:set -XDataKinds>>>solveLinear (6 :: Mod 10) 4 -- solving 6x + 4 ≡ 0 (mod 10)[(1 `modulo` 10),(6 `modulo` 10)]