No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have written code to compute the discriminant of a polynomial f(x) using the determinant of a sylvester matrix which for f(x)=x^5 -110*x^3 +55*x^2 +2310*x +979 looks like [CODE] [[ 1 0 -110 55 2310 979 0 0 0] [ 0 1 0 -110 55 2310 979 0 0] [ … |
|
I have a simple rational number class which looks roughly like: [CODE] class Rational: def __init__(self, numerator,denominator): self.numerator= numerator self.denominator= denominator more functions... [/CODE] but when I work with really large numbers such as the following example: [CODE] >>>a= Rational(2**64, 1) >>>a [/CODE] python crashes telling me Rational instance has … |