Portability | Good |
---|---|

Stability | experimental |

Maintainer | Vincent Hanquez <vincent@snarc.org> |

Safe Haskell | None |

- data Monomial = Monomial !Int !Integer
- data Polynomial
- toList :: Polynomial -> [Monomial]
- fromList :: [Monomial] -> Polynomial
- addPoly :: Polynomial -> Polynomial -> Polynomial
- subPoly :: Polynomial -> Polynomial -> Polynomial
- mulPoly :: Polynomial -> Polynomial -> Polynomial
- squarePoly :: Polynomial -> Polynomial
- expPoly :: Polynomial -> Integer -> Polynomial
- divPoly :: Polynomial -> Polynomial -> (Polynomial, Polynomial)
- negPoly :: Polynomial -> Polynomial

# Documentation

# polynomial operations

toList :: Polynomial -> [Monomial]Source

fromList :: [Monomial] -> PolynomialSource

addPoly :: Polynomial -> Polynomial -> PolynomialSource

subPoly :: Polynomial -> Polynomial -> PolynomialSource

mulPoly :: Polynomial -> Polynomial -> PolynomialSource

expPoly :: Polynomial -> Integer -> PolynomialSource

divPoly :: Polynomial -> Polynomial -> (Polynomial, Polynomial)Source