You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@syms x, y, z
ex = x + y + z
ex.subs((x, 1), (y, pi))
should return 1 + pi + z, but it returns x + y + z. Similarly, ex.subs((x, 1)) throws an error.
If you write subs(ex, (x, 1), (y, pi)) instead, it works as expected. I think the method call doesn't dispatch to the correct implementation, so the only method call that works is ex.subs(var, replacement), but I'm not that familiar with Julia, so I'm not sure.