sigma-ij-0.2.0.2: Thom polynomials of second order Thom-Boardman singularities

Safe HaskellSafe
LanguageHaskell2010

Math.Algebra.ModP

Description

Prime fields.

TODO: do it properly; and fast implementation for specialized prime fields

Synopsis

Documentation

p :: Int64 Source #

2^31-1 is a prime (in practice this seems to be significantly faster than 2^63-25)

newtype Zp Source #

Constructors

Zp Int64 

Instances

Eq Zp Source # 

Methods

(==) :: Zp -> Zp -> Bool #

(/=) :: Zp -> Zp -> Bool #

Fractional Zp Source # 

Methods

(/) :: Zp -> Zp -> Zp #

recip :: Zp -> Zp #

fromRational :: Rational -> Zp #

Num Zp Source # 

Methods

(+) :: Zp -> Zp -> Zp #

(-) :: Zp -> Zp -> Zp #

(*) :: Zp -> Zp -> Zp #

negate :: Zp -> Zp #

abs :: Zp -> Zp #

signum :: Zp -> Zp #

fromInteger :: Integer -> Zp #

Show Zp Source # 

Methods

showsPrec :: Int -> Zp -> ShowS #

show :: Zp -> String #

showList :: [Zp] -> ShowS #

Determinant Zp Source # 
CoeffRing Zp Source # 
(Pretty b, Ord b) => Pretty (FreeMod b Zp) Source # 

Methods

pretty :: FreeMod b Zp -> String Source #

type FieldOfFractions Zp Source # 

mkZp :: Integral a => a -> Zp Source #

addZp :: Zp -> Zp -> Zp Source #

subZp :: Zp -> Zp -> Zp Source #

mulZp :: Zp -> Zp -> Zp Source #

invZp_euclid :: Int64 -> Int64 Source #

Inverse using the binary Euclidean algorithm