def is_conservative(field):
 if (field == Vector(0)):
  return True
 frame = list(field.separate())[0]
 return (curl(field, frame).simplify() == Vector(0))

def is_conservative ( field ) : if ( field == Vector ( 0 ) ) : return True frame = list ( field . separate ( ) ) [ 0 ] return ( curl ( field , frame ) . simplify ( ) == Vector ( 0 ) )
checks if a field is conservative .