ó
¡¼™\c           @   s-   d  d l  m Z d d l m Z d „  Z d S(   iÿÿÿÿ(   t   import_modulei   (   t   LaTeXParsingErrorc         C   s9   t  d d i d g d 6ƒ} | d k	 r5 | j |  ƒ Sd S(   s‘  Converts the string ``s`` to a SymPy ``Expr``

    Parameters
    ==========

    s : str
        The LaTeX string to parse. In Python source containing LaTeX,
        *raw strings* (denoted with ``r"``, like this one) are preferred,
        as LaTeX makes liberal use of the ``\`` character, which would
        trigger escaping in normal Python strings.

    Examples
    ========

    >>> from sympy.parsing.latex import parse_latex  # doctest: +SKIP
    >>> expr = parse_latex(r"\frac {1 + \sqrt {\a}} {\b}")  # doctest: +SKIP
    >>> expr  # doctest: +SKIP
    (sqrt(a) + 1)/b
    >>> expr.evalf(4, subs=dict(a=5, b=2))  # doctest: +SKIP
    1.618
    s&   sympy.parsing.latex._parse_latex_antlrt   __import__kwargst   Xt   fromlistN(   R    t   Nonet   parse_latex(   t   st   _latex(    (    s;   lib/python2.7/site-packages/sympy/parsing/latex/__init__.pyR      s
    N(   t   sympy.externalR    t   errorsR   R   (    (    (    s;   lib/python2.7/site-packages/sympy/parsing/latex/__init__.pyt   <module>   s   