README.rst 461 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Iterpoly
========

Iterpoly can perform some simple algebra on polynomials that are
represented as Python iterables.  However, its main purpose is serving
as an example of packaging a (numerical) Python library.

Usage example
-------------

::

    >>> import iterpoly as ip
    >>> print(list(ip.diff([2, 1, 0, 4])))
    [1, 0, 12]
    >>> print(list(ip.diff([2, 7, 0, 4])))
    [7, 0, 12]
    >>> print(list(ip.integrate([7, 0, 12])))
    [0, 7.0, 0.0, 4.0]