I tried to define a partial differential operator using this code
x ∈ Reals && y ∈ Reals
μ ∈ Reals && ν ∈ Reals
z := x + I y
landau := (Laplacian[#, {x, y}] + 2*(μ + I ν) (z*D[#, z]) -
2*(μ - I ν) (Conjugate[z]*D[#, Conjugate[z]]) +
2 I ν - (μ^2 + ν^2)*(x^2 + y^2)) &
When I type
landau[f]
I got an error saying
General::ivar: "x+I y is not a valid variable." General::ivar: "Conjugate[x]-I\ Conjugate[y] is not a valid variable."
I think Mathematica don't support directly the usage of the standard operators
Is there a way to work directly withe complex coordinates, or do I have always to express differentiation in real coordinates. I will appreciate any other comment concerning my code.
Conjugate[z]
returnsConjugate[x] + I Conjugate[y]
becauseConjugate
doesn't knowx,y
are real. You need to do$Assumptions={Element[x,Reals],..}
, and then the assumptions are only applied bySimplify
and the like. $\endgroup$