예제 #1
0
 def cos(self, o, fp):
     f, = o.ufl_operands
     return fp * -sin(f)
예제 #2
0
 def cos(self, o, fp):
     f, = o.ufl_operands
     return fp * -sin(f)
예제 #3
0
 def cos(self, f):
     "d/dx cos x = -sin(x)"
     x, = f.operands()
     return (-sin(x),)
예제 #4
0
 def cos(self, o, a):
     f, fp = a
     o = self.reuse_if_possible(o, f)
     op = -fp*sin(f)
     return (o, op)
예제 #5
0
 def cos(self, o, a):
     f, fp = a
     o = self.reuse_if_possible(o, f)
     op = -fp * sin(f)
     return (o, op)