
Hi all,
One of the needs for a few of my DSP routines is support for functions
over polynomials. The attached file is what I threw together.
Since this definetly has a broader scope than just me, I wanted to get
some opionions on it.
1. The module is pretty type-free right now. I wanted to get some
opionions on the best type for polynomials and names for the type and
constructor(s).
The big question here (in my mind) is how to represent polynomials. The
most obvious way is as a list of the coefficients. They can also be
represented as a list of the roots. Should there be a single type with
two constructors or two types each with one constructor.
2. Are there any functions that are missing? I have a root finder in a
different module (the one from Numeric Quest; Laguerre's method), but I
am going to rewrite it in terms of the module that I attached.
Functions for inflation and deflation by a single root will need to be
added.
3. Should I add infix operators? I'm not sure what to do about this
because of namespace clutter.
Any other thoughts?
Once again, thanks.
--
Matthew Donadio