Ë
    7^(hÌ	  ã                   ó�   — 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y)é    )ÚAddÚArgumentIndexErrorÚFunction)ÚPow)ÚS)Úlog)ÚcosÚsinT©Úevaluatec                óR   — t        t        | |¬«      t        j                   |¬«      S ©Nr   )r   r	   r   ÚOne)Úxr   s     úW/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/sympy/codegen/scipy_nodes.pyÚ_cosm1r      s   € ÜŒs�1˜xÔ(¬1¯5©5¨&¸8ÔDÐDó    c                   ó.   — e Zd ZdZdZdd„Zd„ Zd„ Zd„ Zy)	Ú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                 óJ   — |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Ð4r   c                 ó   — t        |«      S ©N)r   )r   r   Úkwargss      r   Ú_eval_rewrite_as_coszcosm1._eval_rewrite_as_cos   s   € Ü�a‹yÐr   c                 óL   —  | j                  t        «      j                  |i |¤ŽS r   )Úrewriter	   Úevalf©r   r   r    s      r   Ú_eval_evalfzcosm1._eval_evalf    ó#   € Ø&ˆt�|‰|œCÓ ×&Ñ&¨Ð7°Ñ7Ð7r   c                 óŽ   — | j                   \  }t         |j                  di |¤Ž«      }|t        |d¬«      k7  r|S t        |«      S ©NFr   © )r   r   Úsimplifyr   )r   r    r   Ú	candidates       r   Ú_eval_simplifyzcosm1._eval_simplify#   sC   € Ø�Y‰Y‰ˆÜ˜:˜1Ÿ:™:Ñ/¨Ñ/Ó0ˆ	Øœ˜q¨5Ô1Ò1ØÐä˜“8ˆOr   N©r   )	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Únargsr   r!   r&   r-   r*   r   r   r   r      s"   „ ñð
 €Eó5òò8ór   r   c                óT   — t        t        | ||¬«      t        j                   |¬«      S r   )r   r   r   r   )r   Úyr   s      r   Ú_powm1r6   ,   s    € ÜŒs�1�a (Ô+¬a¯e©e¨V¸hÔGÐGr   c                   ó.   — e Zd ZdZdZdd„Zd„ Zd„ Zd„ Zy)	Ú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
    é   c                 ó  — |dk(  rFt        | 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   sv   € ð �qŠ=Ü�t—y‘y ‘| T§Y¡Y¨q¡\Ó2°4·9±9¸Q±<Ñ?ÀÇ	Á	È!ÁÑLÐLØ˜Š]Ü�t—y‘y ‘|Ó$¤S¨$¯)©) _Ñ4Ð4ä$ T¨8Ó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   —  | j                  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¬«      k7  r|S t        ||«      S r)   )r   r6   r+   r8   )r   r    r   r5   r,   s        r   r-   zpowm1._eval_simplifyI   sZ   € Ø�y‰y‰ˆˆ1Ü˜:˜1Ÿ:™:Ñ/¨Ñ/°°·±Ñ1E¸fÑ1EÓFˆ	Øœ˜q !¨eÔ4Ò4ØÐä˜˜A“;Ðr   Nr.   )	r/   r0   r1   r2   r3   r   r<   r&   r-   r*   r   r   r8   r8   0   s"   „ ñð
 €Eó	5òò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      sF   ðß AÑ AÝ  Ý "Ý 6ß =ð ô EôˆHô ð@ "ô HôˆHõ r   