def cos(self, o, fp): f, = o.ufl_operands return fp * -sin(f)
def cos(self, f): "d/dx cos x = -sin(x)" x, = f.operands() return (-sin(x),)
def cos(self, o, a): f, fp = a o = self.reuse_if_possible(o, f) op = -fp*sin(f) return (o, op)
def cos(self, o, a): f, fp = a o = self.reuse_if_possible(o, f) op = -fp * sin(f) return (o, op)