Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

assignment vs. subs()

What am I missing? I can assign "t=H" but subs(t=H) errors out.

reset('t')
I4=4*identity_matrix(5)
t=3
var('t')
t2 = t^2  #random formula example
 t=I4
 display(t2,t^2)
 a1=t2.subs(t=I4)

assignment vs. subs()

What am I missing? I can assign "t=H" but subs(t=H) errors out.

reset('t')
I4=4*identity_matrix(5)
t=3
var('t')
t2 = t^2  #random formula example
 t=I4
 display(t2,t^2)
 a1=t2.subs(t=I4)