Substituting variables for constants in R[x1,x2], where R=QQ[a1,a2] does not work as expected:
sage: r0=QQ['a1,a2'] sage: a1,a2=r0.gens() sage: r=r0['x1,x2'] sage: x1,x2=r.gens() sage: p=a1*a2*x1^2+a2*x2; p a1*a2*x1^2 + a2*x2 sage: p.subs(x1=1,a1=2) # this is nonsense; a1 remains a2*x2 + a1*a2 It looks as if the substitutions for variables in the inner ring are alwas ignored. I am using such a ring as I want to treat ai as parameters, i.e. I would like monomial expansions in xi alone. Perhaps there is a better way to accomplish this? Dima -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.