1 | initial version |
You could have a look at this answer:
https://ask.sagemath.org/question/33310/help-with-matrices-over-multivariable-polynomial-ring/?answer=33315#post-id-33315
TL;DR replace:
A = QQ['theta1', 'theta2']
with:
A = QQ['theta1', 'theta2']
A.inject_variables()