Re: [Numpy-discussion] Some minor issues with numpy and fractions

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 3:25 PM, Michael S. Gilbert < michael.s.gilb...@gmail.com> wrote: > On Mon, 27 Apr 2009 17:04:17 -0400, Michael S. Gilbert wrote: > > I had mentioned recently some interest in using fractions in the numpy > > polynomial class. Suprisingly, it actually works for the most par

Re: [Numpy-discussion] Some minor issues with numpy and fractions

2009-04-27 Thread Michael S. Gilbert
On Mon, 27 Apr 2009 17:04:17 -0400, Michael S. Gilbert wrote: > I had mentioned recently some interest in using fractions in the numpy > polynomial class. Suprisingly, it actually works for the most part out > of the box, which is great. However, there are some minor issues. For > example: > > >>

Re: [Numpy-discussion] Some minor issues with numpy and fractions

2009-04-27 Thread Pauli Virtanen
Mon, 27 Apr 2009 17:04:17 -0400, Michael S. Gilbert wrote: > I had mentioned recently some interest in using fractions in the numpy > polynomial class. Suprisingly, it actually works for the most part out > of the box, which is great. However, there are some minor issues. For > example: > > >>>

[Numpy-discussion] Some minor issues with numpy and fractions

2009-04-27 Thread Michael S. Gilbert
I had mentioned recently some interest in using fractions in the numpy polynomial class. Suprisingly, it actually works for the most part out of the box, which is great. However, there are some minor issues. For example: numpy.poly1d( [ fractions.Fraction(1,2) , fractions.Fraction(1,8) ] >>