def parse_expr(s, local_dict=None, transformations=standard_transformations, global_dict=None, evaluate=True):
 if (local_dict is None):
  local_dict = {}
 if (global_dict is None):
  global_dict = {}
  exec_('from sympy import *', global_dict)
 code = stringify_expr(s, local_dict, global_dict, transformations)
 if (not evaluate):
  code = compile(evaluateFalse(code), '<string>', 'eval')
 return eval_expr(code, local_dict, global_dict)

def parse_expr ( s , local_dict = None , transformations = standard_transformations , global_dict = None , evaluate = True ) : if ( local_dict is None ) : local_dict = { } if ( global_dict is None ) : global_dict = { } exec_ ( 'from sympy import *' , global_dict ) code = stringify_expr ( s , local_dict , global_dict , transformations ) if ( not evaluate ) : code = compile ( evaluateFalse ( code ) , '<string>' , 'eval' ) return eval_expr ( code , local_dict , global_dict )
converts the string s to a sympy expression .