def make_derivative_operator(M, z):
 def doit(C):
  r = ((z * C.diff(z)) + (C * M))
  r = r.applyfunc(make_simp(z))
  return r
 return doit

def make_derivative_operator ( M , z ) : def doit ( C ) : r = ( ( z * C . diff ( z ) ) + ( C * M ) ) r = r . applyfunc ( make_simp ( z ) ) return r return doit
create a derivative operator .