Example #1
0
 def gradient(self):
     """Return the gradient operator."""
     return FunctionalQuotient(ConstantFunctional(self.domain, -1.0),
                               square(self.domain))
Example #2
0
 def gradient(self):
     """Return the gradient operator."""
     return FunctionalQuotient(ConstantFunctional(self.domain, 0.5),
                               self)