Dima Pasechnik wrote: > sage: r0=QQ['a1,a2'] > sage: a1,a2=r0.gens() > sage: r=r0['x1,x2'] [...] > 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?
The best I can think of is p.map_coefficients(lambda a: a.subs(a1=2,a2=1)) -- Marc -- 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/groups/opt_out.
