
Polynomial.Basic  Portability  portable  Stability  experimental  Maintainer  m.p.donadio@ieee.org 




Contents 
 Types
 Functions


Description 
Simple module for handling polynomials.


Synopsis 

polyeval :: (Num a) => [a] > a > a   polyadd :: (Num a) => [a] > [a] > [a]   polysub :: (Num a) => [a] > [a] > [a]   polyscale :: (Num a) => a > [a] > [a]   polymult :: (Num a) => [a] > [a] > [a]   polydiv :: (Fractional a) => [a] > [a] > [a]   polymod :: (Fractional a) => [a] > [a] > [a]   polypow :: (Num a, Integral b) => [a] > b > [a]   polysubst :: (Num a) => [a] > [a] > [a]   polyderiv :: (Num a) => [a] > [a]   polyinteg :: (Fractional a) => [a] > a > [a]   roots2poly :: (Num a) => [a] > [a] 



Types 

Functions 

polyeval :: (Num a) => [a] > a > a 
Evaluate a polynomial using Horner's method. 

polyadd :: (Num a) => [a] > [a] > [a] 
Add two polynomials 

polysub :: (Num a) => [a] > [a] > [a] 
Subtract two polynomials 

polyscale :: (Num a) => a > [a] > [a] 
Scale a polynomial 

polymult :: (Num a) => [a] > [a] > [a] 
Multiply two polynomials 

polydiv :: (Fractional a) => [a] > [a] > [a] 
Divide two polynomials 

polymod :: (Fractional a) => [a] > [a] > [a] 
Modulus of two polynomials (remainder of division) 

polypow :: (Num a, Integral b) => [a] > b > [a] 
Raise a polynomial to a nonnegative integer power 

polysubst :: (Num a) => [a] > [a] > [a] 
Polynomial substitution y(n) = x(w(n)) 

polyderiv :: (Num a) => [a] > [a] 
Polynomial derivative 

polyinteg :: (Fractional a) => [a] > a > [a] 
Polynomial integration 

roots2poly :: (Num a) => [a] > [a] 
Convert roots to a polynomial 

Produced by Haddock version 0.4 