§
    OŠtjÌ	  ã                   óž   — d dl mZmZmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZmZ ddœd„Z G d	„ d
e¦  «        Zddœd„Z G d„ de¦  «        ZdS )é    )ÚAddÚArgumentIndexErrorÚFunction)ÚPow)ÚS)Úlog)ÚcosÚsinT©Úevaluatec                óZ   — t          t          | |¬¦  «        t          j         |¬¦  «        S ©Nr   )r   r	   r   ÚOne)Úxr   s     úW/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/sympy/codegen/scipy_nodes.pyÚ_cosm1r      s(   € Ý�s�1˜xÐ(Ñ(Ô(­1¬5¨&¸8ÐDÑDÔDÐDó    c                   ó0   — e Zd ZdZdZdd„Zd„ Zd„ Zd„ ZdS )	Úcosm1zâ Minus one plus cosine of x, i.e. cos(x) - 1. For use when x is close to zero.

    Helper class for use with e.g. scipy.special.cosm1
    See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.cosm1.html
    é   c                 óL   — |dk    rt          | j        Ž  S t          | |¦  «        ‚)ú@
        Returns the first derivative of this function.
        r   )r
   Úargsr   ©ÚselfÚargindexs     r   Úfdiffzcosm1.fdiff   s,   € ð �qŠ=ˆ=Ý˜œ�OÐ#Ð#å$ T¨8Ñ4Ô4Ð4r   c                 ó    — t          |¦  «        S ©N)r   )r   r   Úkwargss      r   Ú_eval_rewrite_as_coszcosm1._eval_rewrite_as_cos   s   € Ý�a‰yŒyÐr   c                 óL   —  |                       t          ¦  «        j        |i |¤ŽS r   )Úrewriter	   Úevalf©r   r   r    s      r   Ú_eval_evalfzcosm1._eval_evalf    ó&   € Ø&ˆt�|Š|�CÑ Ô Ô&¨Ð7°Ð7Ð7Ð7r   c                 ó”   — | j         \  }t           |j        di |¤Ž¦  «        }|t          |d¬¦  «        k    r|S t          |¦  «        S ©NFr   © )r   r   Úsimplifyr   )r   r    r   Ú	candidates       r   Ú_eval_simplifyzcosm1._eval_simplify#   sS   € ØŒY‰ˆÝ˜:˜1œ:Ð/Ð/¨Ð/Ð/Ñ0Ô0ˆ	Ø�˜q¨5Ð1Ñ1Ô1Ò1Ð1ØÐå˜‘8”8ˆOr   N©r   )	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Únargsr   r!   r&   r-   r*   r   r   r   r      sf   € € € € € ðð ð
 €Eð5ð 5ð 5ð 5ðð ð ð8ð 8ð 8ðð ð ð ð r   r   c                ó\   — t          t          | ||¬¦  «        t          j         |¬¦  «        S r   )r   r   r   r   )r   Úyr   s      r   Ú_powm1r6   ,   s*   € Ý�s�1�a (Ð+Ñ+Ô+­a¬e¨V¸hÐGÑGÔGÐGr   c                   ó0   — e Zd ZdZdZd	d„Zd„ Zd„ Zd„ ZdS )
Úpowm1zý Minus one plus x to the power of y, i.e. x**y - 1. For use when x is close to one or y is close to zero.

    Helper class for use with e.g. scipy.special.powm1
    See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.powm1.html
    é   r   c                 ó  — |dk    rBt          | j        d         | j        d         ¦  «        | j        d         z  | j        d         z  S |dk    r)t          | j        d         ¦  «        t          | j        Ž z  S t          | |¦  «        ‚)r   r   r   r9   )r   r   r   r   r   s     r   r   zpowm1.fdiff8   sw   € ð �qŠ=ˆ=Ý�t”y ”| T¤Y¨q¤\Ñ2Ô2°4´9¸Q´<Ñ?ÀÄ	È!ÄÑLÐLØ˜Š]ˆ]Ý�t”y ”|Ñ$Ô$¥S¨$¬) _Ñ4Ð4å$ T¨8Ñ4Ô4Ð4r   c                 ó"   — t          ||¦  «        S r   )r6   )r   r   r5   r    s       r   Ú_eval_rewrite_as_Powzpowm1._eval_rewrite_as_PowC   s   € Ý�a˜‰|Œ|Ðr   c                 óL   —  |                       t          ¦  «        j        |i |¤ŽS r   )r#   r   r$   r%   s      r   r&   zpowm1._eval_evalfF   r'   r   c                 ó²   — | j         \  }}t           |j        di |¤Ž |j        di |¤Ž¦  «        }|t          ||d¬¦  «        k    r|S t          ||¦  «        S r)   )r   r6   r+   r8   )r   r    r   r5   r,   s        r   r-   zpowm1._eval_simplifyI   sn   € ØŒy‰ˆˆ1Ý˜:˜1œ:Ð/Ð/¨Ð/Ð/°°´Ð1EÐ1E¸fÐ1EÐ1EÑFÔFˆ	Ø�˜q !¨eÐ4Ñ4Ô4Ò4Ð4ØÐå˜˜A‘;”;Ðr   Nr.   )	r/   r0   r1   r2   r3   r   r<   r&   r-   r*   r   r   r8   r8   0   sf   € € € € € ðð ð
 €Eð	5ð 	5ð 	5ð 	5ðð ð ð8ð 8ð 8ðð ð ð ð r   r8   N)Úsympy.core.functionr   r   r   Úsympy.core.powerr   Úsympy.core.singletonr   Ú&sympy.functions.elementary.exponentialr   Ú(sympy.functions.elementary.trigonometricr	   r
   r   r   r6   r8   r*   r   r   ú<module>rD      s  ðØ AÐ AÐ AÐ AÐ AÐ AÐ AÐ AÐ AÐ AØ  Ð  Ð  Ð  Ð  Ð  Ø "Ð "Ð "Ð "Ð "Ð "Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6Ø =Ð =Ð =Ð =Ð =Ð =Ð =Ð =ð ð Eð Eð Eð Eð Eðð ð ð ð ˆHñ ô ð ð@ "ð Hð Hð Hð Hð Hðð ð ð ð ˆHñ ô ð ð ð r   