On 2014-03-20, hw <[email protected]> wrote: > > I've defined some matrices with some variables using > > a,b,c,d = var('a','b','c','d') > M=matrix(SR, [[a,b],[c,d]]) > ... > > and manipulated them. Now I'd like to evaluate the result e.g. by setting > a=0 No problem; use substitute. E.g.
sage: M=matrix(SR, [[a,b],[c,d]]) sage: M.substitute(a=0,b=a-b) [ 0 a - b] [ c d] -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
