def separatevars(expr, symbols=[], dict=False, force=False):
 expr = sympify(expr)
 if dict:
  return _separatevars_dict(_separatevars(expr, force), symbols)
 else:
  return _separatevars(expr, force)

def separatevars ( expr , symbols = [ ] , dict = False , force = False ) : expr = sympify ( expr ) if dict : return _separatevars_dict ( _separatevars ( expr , force ) , symbols ) else : return _separatevars ( expr , force )
separates variables in an expression .