o
    *ήc                     @   s:   d dl mZ d dlmZ ddlmZ edddd Zd	S )
    )import_module)doctest_depends_on   )LaTeXParsingError)antlr4)modulesc                 C   s(   t dddgid}|dur|| S dS )aI  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
    >>> expr = parse_latex(r"\frac {1 + \sqrt {\a}} {\b}")
    >>> expr
    (sqrt(a) + 1)/b
    >>> expr.evalf(4, subs=dict(a=5, b=2))
    1.618
    z&sympy.parsing.latex._parse_latex_antlrfromlistX)import_kwargsN)r   parse_latex)s_latex r   C/tmp/pip-target-vg8gfxp4/lib/python/sympy/parsing/latex/__init__.pyr      s   
r   N)sympy.externalr   sympy.utilities.decoratorr   errorsr   r   r   r   r   r   <module>   s
    