how about ex(c=1) ? On Sun, Nov 14, 2021 at 11:25 AM 'Martin R' via sage-support <sage-support@googlegroups.com> wrote: > > I would expect subs to replace c with 1, but it doesn't. Why? > > sage: S.<a, b, c, d, e, f, g> = QQ[] > sage: R.<x> = S[] > sage: ex = (a*x+b)/(c*x + d) - (e*x+f)/(g*c*x + g*d) > sage: ex > ((a*g - e)*x + b*g - f)/(c*g*x + d*g) > sage: ex.subs(c=1) > ((a*g - e)*x + b*g - f)/(c*g*x + d*g) > sage: ex.subs({c:1}) > ((a*g - e)*x + b*g - f)/(c*g*x + d*g) > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/1504387a-90c4-46d2-9759-a952bafe8edfn%40googlegroups.com.
-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq165Tmn32coDm5QW4zkCdocLkQPck_RJ9KmFJxQFYP%3Dxg%40mail.gmail.com.