[ANN] ratfun-2.3 Polynomials and Rational Functions

Discussion in 'Python' started by Raymond L. Buvel, Aug 19, 2006.

  1. 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.
    Raymond L. Buvel, Aug 19, 2006
    1. Advertisements

  2. Raymond L. Buvel

    Bas Guest

    Bas, Aug 19, 2006
    1. Advertisements

  3. 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.

    Raymond L. Buvel, Aug 19, 2006
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.