Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 2118 by elmopl: subs() doesn't work as expected? http://code.google.com/p/sympy/issues/detail?id=2118 ---code--- from sympy import * x,y,s = symbols('xys') z = (1 - 2*x*x) w = (1 + 2*x*x) q = 2*x*x*2*y*y sub = {2*x*x: s} print w.subs(sub) print z.subs(sub) print q print q.subs(sub) ---/code-- The output I get: 1 + s 1 - 2*x**2 4*x**2*y**2 4*x**2*y**2 The output I expect: 1 + s 1 - s 4*x**2*y**2 2*y**2*s Do I do something wrong? -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en.
