a simple module for finding roots of polynomial ?

Chris Barker chrishbarker at home.net
Thu Oct 25 16:36:47 EDT 2001


Jan Samohyl wrote:
> 
> Hello,
> I am looking for some polynomial root finder. I wish I could just give a list
> of coefficients (for me, reals are enough) and get a list of roots (but these
> should contain the complex ones). Is there something simple as this in Python,
> or I have to code it myself ?

I'd take a look at www.scipy.org, there's a pretty good chance this is
there. If not, I'd look for a library that does it that you can wrap. A
polynomial root finder is not a trivial piece of code to write (unless
you are limited to polynomials of order less four)

-CHB


-- 
Christopher Barker,
Ph.D.                                                           
ChrisHBarker at home.net                 ---           ---           ---
http://members.home.net/barkerlohmann ---@@       -----@@       -----@@
                                   ------@@@     ------@@@     ------@@@
Oil Spill Modeling                ------   @    ------   @   ------   @
Water Resources Engineering       -------      ---------     --------    
Coastal and Fluvial Hydrodynamics --------------------------------------
------------------------------------------------------------------------



More information about the Python-list mailing list