First time here? Check out the FAQ!
answered 2014-02-12 02:15:35 +0100
A suggestion.
import re var('x y z r') eqns = [x+y==1, x-z==0] sol=solve(eqns,[x,y,z])[0] S=str(sol) eval(S.replace(re.search('r[0-9]+',S).group(),'r'))