[ANN] ratfun-2.3 Polynomials and Rational Functions

R

Raymond L. Buvel

The ratfun module provides classes for defining polynomial and rational
function (ratio of two polynomials) objects. These objects can be used
in arithmetic expressions and evaluated at a particular point.

Home page: http://calcrpnpy.sourceforge.net/ratfun.html

Note: If you are using rpncalc-1.2 or later, this module is already
included. This release is for folks who don't want rpncalc.

Changes in 2.3

* Update the included clnum package.

* Improved the formatting of the string representation of a polynomial.

* Polynomial and rational function evaluation now works with array inputs.
 
R

Raymond L. Buvel

Bas said:
Are there any differences between this module and the one already
present in numpy?

http://www.scipy.org/doc/numpy_api_docs/numpy.lib.polynomial.html

Cheers,
Bas

Yes, there are quite a few. This module uses a multi-precision library
(clnum) to make the calculations more precise. This makes the root
finder significantly more precise. There is an example in the user
manual that shows the difference in performance between Numeric
(essentially the same code as in numpy) and the ratfun root finder on an
ill-conditioned polynomial.

If you choose to use exact coefficients (integers and rationals) then
all calculations except for root finding are exact.

Unlike the numpy implementation, arithmetic (+-*/**) uses the standard
Python operators instead of requiring you to call functions.

Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top