arithmetic-1.4: Natural number arithmetic
Arithmetic.Quadratic
Description
rootFloor :: Natural -> Natural Source #
rootCeiling :: Natural -> Natural Source #
destSquare :: Natural -> Maybe Natural Source #
isSquare :: Natural -> Bool Source #
rootContinuedFraction :: Natural -> ContinuedFraction Source #
rootContinuedFractionPeriodic :: Natural -> [Natural] Source #
rootContinuedFractionPeriodicTail :: Natural -> Natural -> [Natural] Source #
data Residue Source #
Constructors
Defined in Arithmetic.Quadratic
Methods
(==) :: Residue -> Residue -> Bool #
(/=) :: Residue -> Residue -> Bool #
compare :: Residue -> Residue -> Ordering #
(<) :: Residue -> Residue -> Bool #
(<=) :: Residue -> Residue -> Bool #
(>) :: Residue -> Residue -> Bool #
(>=) :: Residue -> Residue -> Bool #
max :: Residue -> Residue -> Residue #
min :: Residue -> Residue -> Residue #
showsPrec :: Int -> Residue -> ShowS #
show :: Residue -> String #
showList :: [Residue] -> ShowS #
jacobiSymbol :: Natural -> Natural -> Residue Source #
isResidue :: Natural -> Natural -> Bool Source #
isNonResidue :: Natural -> Natural -> Bool Source #
nextResidue :: Natural -> Natural -> Natural Source #
nextNonResidue :: Natural -> Natural -> Natural Source #
rootModuloPrime3Mod4 :: Natural -> Natural -> Natural Source #
rootModuloPrime5Mod8 :: Natural -> Natural -> Natural Source #
rootModuloPrime :: Natural -> Natural -> Natural Source #