We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From this ask question, the symbolic power of a matrix gives a result that is correct when restricted to positive integers, but wrong on 0:
sage: A = matrix(QQbar,3,3,[[-2,-8,-12],[1,4,4],[0,0,1]]) sage: k = SR.var('k') sage: B = A^k sage: B [ -2^k -4*2^k -4*2^k - 4] [ 1/2*2^k 2*2^k 2*2^k] [ 0 0 1] sage: [B.subs(k=i) == A^i for i in range(20)] [False, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True, True] sage: B.subs(k=0) [ -1 -4 -8] [1/2 2 2] [ 0 0 1]
CC: @mforets @slel
Component: symbolics
Issue created by migration from https://trac.sagemath.org/ticket/25520
The text was updated successfully, but these errors were encountered:
This is not really something we can do anything about, I expect. It's just a consequence of
sage: (0^x).simplify() 0
which is wrong for x=0.
x=0
Sorry, something went wrong.
No branches or pull requests
From this ask question, the symbolic power of a matrix gives a result that is correct when restricted to positive integers, but wrong on 0:
CC: @mforets @slel
Component: symbolics
Issue created by migration from https://trac.sagemath.org/ticket/25520
The text was updated successfully, but these errors were encountered: