[Numpy-discussion] Idea: fractional polynomial class

Stéfan van der Walt stefan@sun.ac...
Fri Apr 24 20:42:46 CDT 2009


2009/4/24 Pauli Virtanen <pav@iki.fi>:
> polyint fixed in r6883, there doesn't seem anything else to fix:
>
>>>> import numpy as np
>>>> from fractions import Fraction
>>>> a = np.poly1d([Fraction(4,19), Fraction(3,19), Fraction(2,19), 0])

Very cool.  I think we should mention thi example in the docs as well?

Cheers
Stéfan


More information about the Numpy-discussion mailing list