Jan-20-2022, 12:29 PM
(Jan-20-2022, 12:15 PM)ThiefOfTime Wrote: Also there fail on my part, so sorry. I forgot to mention that subs is returning a new matrix. so in order to have it saved in your old variable you would need to do
rho_matrix = rho_matrix.subs(cur_symbol, m)There is no special print function for that, the normal one will do fine :)
hmm, it seems that subs method is not working. I double checked and printed. m matrix is coming ok. but when we write
rho_matrix = rho_matrix.subs(cur_symbol, m)rho_matrix is still rho00 and not the [1,0,0,0....]