Re: [sympy] Re: an error in computing diff for partial differentiation

2010-04-08 Thread Aaron S . Meurer
diff is not the problem here, subs is. For example, if you compare the expressions for diff(x, y) and diff(y, x), they are the same. The problem is that you get terms like (2*x - 3*y**2)/(x**2 + y**2). IMHO, subs({x:0, y:0}) should not even work here, because you get 0/0. The problem is that

[sympy] Re: an error in computing diff for partial differentiation

2010-04-07 Thread chu-ching huang
Hi, I know this problem can be treated correctly as above. The example given here is just to say that using "diff" has to be more careful since diff(f,x,y).subs([(x, a), (y,b)]) may be not equal to $lim_{(x,y)\to(a,b)} f(x,y)$. Thanks, cch -- You received this message because you are subscri