Ask Your Question

Revision history [back]

laplace transform sagemaths

I have a polynomial expression P(x) in x and I want to evaluate it for x=A a matrix. I tried P(x).substitute(x=A) but I have error : TypeError: Cannot convert sage.matrix.matrix_integer_dense.Matrix_integer_dense to sage.symbolic.expression.Expression

How can I proceed? Is there a coercion possible. Thanks

click to hide/show revision 2
None

laplace transform sagemaths

I have a polynomial expression P(x) P(x) in x x and I want to evaluate it for x=A x=A a matrix. I tried

P(x).substitute(x=A)

but I have error : :

TypeError: Cannot convert sage.matrix.matrix_integer_dense.Matrix_integer_dense to sage.symbolic.expression.Expression

sage.symbolic.expression.Expression

How can I proceed? Is there a coercion possible. Thanks