I have a sympy expression with two variables
exp = x*y
I want to evaluate this function with y = 1 (to return a new expression new_exp = x)
I could only find the evalf function in the doc but it's not working (returns new_exp = x*y)
e.evalf(subs={y:1})
Any idea on this?
Thanks!