Defining differential operator that acts like curl
Hello,
As a newbie in using SAGE (experience with Python and Numpy), I was wondering how to define a differential operator that acts like curl (or ∇×→F). The curl for a vector field →F=(Fx,Fy,Fz)is defined as a determinant det(∇,→F). I want to define such operators that act on Fx,Fy,Fz without calculating the determinant a priori. In other words if I was to multiply ∂∂x with Fy, I would expect to get ∂Fy∂x EDIT:
class DiffOpp(SageObject):
def __init__(self, dep_var):
self.dep_var = dep_var
def __mul__(self, f):
return diff(f, self.dep_var)