parameters: (expr, var="x", globals=None, locals=None)
return_statement: return output
docstring: Converts a "f(x)" string to a function acceptable for Curve.
  
      expr    required        string in the form "f(x)"
      var     default="x"     name of the independent variable
      globals default=None    dict of global variables used in the expression;
                              you may want to use Python's builtin globals()
      locals  default=None    dict of local variables
docstring_summary: Converts a "f(x)" string to a function acceptable for Curve.
docstring_tokens: Converts a f ( x ) string to a function acceptable for Curve .
function: def funcRtoR(expr, var="x", globals=None, locals=None):
      """Converts a "f(x)" string to a function acceptable for Curve.
  
      expr    required        string in the form "f(x)"
      var     default="x"     name of the independent variable
      globals default=None    dict of global variables used in the expression;
                              you may want to use Python's builtin globals()
      locals  default=None    dict of local variables
      """
      if locals is None:
          locals = {}  # python 2.3's eval() won't accept None
      g = math.__dict__
      if globals is not None:
          g.update(globals)
      output = eval("lambda %s: (%s, %s)" % (var, var, expr), g, locals)
      set_func_name(output, "%s -> %s" % (var, expr))
      return output
function_tokens: def funcRtoR ( expr , var = "x" , globals = None , locals = None ) : if locals is None : locals = { } # python 2.3's eval() won't accept None g = math . __dict__ if globals is not None : g . update ( globals ) output = eval ( "lambda %s: (%s, %s)" % ( var , var , expr ) , g , locals ) set_func_name ( output , "%s -> %s" % ( var , expr ) ) return output