Hello everyone,

there seems to be a bug in substitute:

var('k1 k2 k3')
f = (k1+k2)^2
f.substitute(k1+k2==k3)

gives k3^2 as expected.

var('k1 k2 k3')
f = (k1+k2)*2
f.substitute(k1+k2==k3)

gives 2*k1 + 2*k2. The same happens for +2 instead of *2.

Is there an alternative to do a substitution?

Thanks a lot.

Stefan

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to