I would like to obtain a symbolic expression which is the derivative of atan2(y,x)
, where y
and x
are some expressions with a variable z
. Can I safely assume that diff(atan2(y,x),z)
gives me what I want?
In math.stackexchange.com there is a proof that atan2
is continuously differentialable in (-pi,pi), but is it in SymPy?
sympy.diff
on an expression of two variables without telling it what you want to differentiate. Also, continuously differentiable for what in(-pi, pi)
? Surely notx
ory
. Maybe it's continuously differentiable cuttingatan
on that range (which I think means the variable you're differentiating on is nonnegative and the other is nonzero?). – Lorrianelorrieatan2(y,x)
is two argument function: byy
I mean some expression, as in the case ofx
. You are right, I forgot the differentiation variable in diff! – Reagent