You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to calculate eigenvalues "manually", so I form the following matrix: m=Matrix([[Rational(1,2)-x, sqrt(3)/2, 0,0], [1, sqrt(3)-x,0,0],[-sqrt(3)/2, Rational(1,2), -x, 0],[-2,0,0,-x]]) m.det() gives (4*x**5 - 8*sqrt(3)*x**4 - 4*x**4 + 4*sqrt(3)*x**3 + 13*x**3)/(4*x - 4*sqrt(3) - 2), when, in fact, it should be a polynomial and I can't find a way to simplify it: factor and cancel don't work.
The text was updated successfully, but these errors were encountered:
@oscarbenjamin , I use det(method='berkowitz') which works. Can it give division? Is there any reason that the default algorithm for det is bareiss, not berkowitz?
The bareiss algorithm is supposed to use exact division i.e. divisions that always cancel. I guess that it isn't using cancel or isn't using extension=True so the cancellation doesn't happen. It would make more sense to use the bareiss algorithm with DomainMatrix.
I want to calculate eigenvalues "manually", so I form the following matrix:
m=Matrix([[Rational(1,2)-x, sqrt(3)/2, 0,0], [1, sqrt(3)-x,0,0],[-sqrt(3)/2, Rational(1,2), -x, 0],[-2,0,0,-x]])
m.det()
gives(4*x**5 - 8*sqrt(3)*x**4 - 4*x**4 + 4*sqrt(3)*x**3 + 13*x**3)/(4*x - 4*sqrt(3) - 2)
, when, in fact, it should be a polynomial and I can't find a way to simplify it:factor
andcancel
don't work.The text was updated successfully, but these errors were encountered: