
    Rie                     T    d dl mZ d dlmZ ddlmZ  ed          d             ZdS )	    )import_module)doctest_depends_on   )LaTeXParsingError)antlr4)modulesc                 \    t          dddgi          }||                    |           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_latexs     <lib/python3.11/site-packages/sympy/parsing/latex/__init__.pyr   r      sI    0 0!C5)+ + +F !!!$$$     N)sympy.externalr   sympy.utilities.decoratorr   errorsr   r    r   r   <module>r      sm    ( ( ( ( ( ( 8 8 8 8 8 8 % % % % % %K(((% % )(% % %r   