polynomial-0.7.3: Polynomials
Math.Polynomial.NumInstance
Contents
Description
This module exports a Num instance for the Poly type. This instance does not implement all operations, because abs and signum are simply not definable, so I have placed it into a separate module so that I can make people read this caveat ;).
Num
Poly
abs
signum
Use at your own risk.
Methods
(+) :: Poly a -> Poly a -> Poly a #
(-) :: Poly a -> Poly a -> Poly a #
(*) :: Poly a -> Poly a -> Poly a #
negate :: Poly a -> Poly a #
abs :: Poly a -> Poly a #
signum :: Poly a -> Poly a #
fromInteger :: Integer -> Poly a #