inverse of a matrix with Fraction entries

Peter Pearson ppearson at nowhere.invalid
Wed Nov 24 12:39:34 EST 2010


On Wed, 24 Nov 2010 14:02:21 +0100, Daniel Fetchinson wrote:
[snip]
> I'm using fractions.Fraction as entries in a matrix because I need to
> have very high precision and fractions.Fraction provides infinite
> precision . . .
[snip]
>
> Probably it doesn't matter but the matrix has all components non-zero
> and is about a thousand by thousand in size.

I wonder how big the numerators and denominators in those
fractions are going to get during the matrix inversion.  Would
it be surprising if the elements of the inverse matrix had
numerators and denominators a million times longer than the
original matrix?

-- 
To email me, substitute nowhere->spamcop, invalid->net.



More information about the Python-list mailing list