U
    9%e                     @   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)Zantlr4)modulesc                 C   s(   t dddgid}|dk	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)Zimport_kwargsN)r   parse_latex)sZ_latex r   [/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/sympy/parsing/latex/__init__.pyr	      s    r	   N)Zsympy.externalr   Zsympy.utilities.decoratorr   errorsr   r	   r   r   r   r   <module>   s   