
    \h	                         S SK JrJrJr  S SKJr  S SKJr  S SKJ	r	  S SK
JrJr  SS.S jr " S	 S
\5      rSS.S jr " S S\5      rg)    )AddArgumentIndexErrorFunction)Pow)S)log)cossinTevaluatec                D    [        [        XS9[        R                  * US9$ Nr   )r   r	   r   One)xr   s     Q/var/www/auris/envauris/lib/python3.13/site-packages/sympy/codegen/scipy_nodes.py_cosm1r      s    s1(155&8DD    c                   8    \ rS rSrSrSrS
S jrS rS rS r	Sr
g	)cosm1   zMinus 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    US:X  a  [        U R                  6 * $ [        X5      e)0
Returns the first derivative of this function.
r   )r
   argsr   selfargindexs     r   fdiffcosm1.fdiff   s'     q=O##$T44r   c                     [        U5      $ N)r   )r   r   kwargss      r   _eval_rewrite_as_coscosm1._eval_rewrite_as_cos   s    ayr   c                 L    U R                  [        5      R                  " U0 UD6$ r!   )rewriter	   evalfr   r   r"   s      r   _eval_evalfcosm1._eval_evalf    !    ||C &&777r   c                     U R                   u  n[        UR                  " S0 UD65      nU[        USS9:w  a  U$ [        U5      $ NFr    )r   r   simplifyr   )r   r"   r   	candidates       r   _eval_simplifycosm1._eval_simplify#   sA    YY1:://0	q5118Or   r.   Nr   )__name__
__module____qualname____firstlineno____doc__nargsr   r#   r)   r1   __static_attributes__r.   r   r   r   r      s"    
 E58r   r   c                F    [        [        XUS9[        R                  * US9$ r   )r   r   r   r   )r   yr   s      r   _powm1r=   ,   s    s1(+aeeVhGGr   c                   8    \ rS rSrSrSrS
S jrS rS rS r	Sr
g	)powm10   zMinus 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                    US:X  aF  [        U R                  S   U R                  S   5      U R                  S   -  U R                  S   -  $ US:X  a+  [        U R                  S   5      [        U R                  6 -  $ [        X5      e)r   r   r   rA   )r   r   r   r   r   s     r   r   powm1.fdiff8   st     q=tyy|TYYq\2499Q<?		!LL]tyy|$S$))_44$T44r   c                     [        X5      $ r!   )r=   )r   r   r<   r"   s       r   _eval_rewrite_as_Powpowm1._eval_rewrite_as_PowC   s    a|r   c                 L    U R                  [        5      R                  " U0 UD6$ r!   )r&   r   r'   r(   s      r   r)   powm1._eval_evalfF   r+   r   c                     U R                   u  p#[        UR                  " S0 UD6UR                  " S0 UD65      nU[        X#SS9:w  a  U$ [        X#5      $ r-   )r   r=   r/   r?   )r   r"   r   r<   r0   s        r   r1   powm1._eval_simplifyI   sP    yy1:://1Ef1EF	qe44;r   r.   Nr3   )r4   r5   r6   r7   r8   r9   r   rE   r)   r1   r:   r.   r   r   r?   r?   0   s"    
 E	58r   r?   N)sympy.core.functionr   r   r   sympy.core.powerr   sympy.core.singletonr   &sympy.functions.elementary.exponentialr   (sympy.functions.elementary.trigonometricr	   r
   r   r   r=   r?   r.   r   r   <module>rP      sF    A A   " 6 =  EH @ " HH r   