diophantine

A quadratic diophantine equation solving library.

https://github.com/llllllllll/Math.Diophantine

Latest on Hackage:0.2.1.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

GPL-2.0-only licensed by Joe Jevnik
Maintained by Joe Jevnik

A library for solving quadratic diophantine equations.

This library is designed to solve for equations where:

  • The form is: ax^2 + bxy + cy^2 + dx + ey + f = 0

  • a,b,c,d,e,f are integers.

  • Solutions are restricted to x and y are also integers.

This library breaks down equations based on their type to solve them most efficiently. This library supports linear, simple hyperbolic, eliptical, and parabolic equations, with hyperbolics on the way.

Please send feedback or bugs to [email protected].