Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Pell's Equation: x^2 - Dy^2 = 1.
Synopsis
- fundamentalSolution :: Integral a => a -> Maybe (a, a)
- checkSolution :: Integral a => a -> (a, a) -> Bool
Documentation
The fundamental solution to Pell's Equation is the solution (x, y) minimizing x.