+
    i	                     h    ^ RI HtHt ^ RIHt ^ RIHt ^ RIHtH	t	 ^ RI
Ht ^ RIHt R tR tR	 tR
# )    )FunctionDefinedFunctionsympify)tanh)cossin)limit)xc                 0   \         \        3 F  p  ! R RV 4      pV! \        4      P                  \        ^ ^
4      \	        \        4      P                  \        ^ ^
4      8X  g   Q h\        V! \        4      \        ,          \        ^ 4      ^8X  d   K  Q h	  R# )zCreate our new "sin" function.c                   :   a  ] tR t^t o RR lt]R 4       tRtV tR# )*test_function_series1.<locals>.my_functionc                :    \        V P                  ^ ,          4      # r   )r   argsselfargindexs   &&m/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/functions/elementary/tests/test_interface.pyfdiff0test_function_series1.<locals>.my_function.fdiff   s    499Q<((    c                @    \        V4      pV^ 8X  d   \        ^ 4      # R# r   Nr   clsargs   &&r   eval/test_function_series1.<locals>.my_function.eval   !    cl!8"1:% r    N   	__name__
__module____qualname____firstlineno__r   classmethodr   __static_attributes____classdictcell____classdict__s   @r   my_functionr      s     ) & &r   r.   N)r   r   r   seriesr	   r
   )Fr.   s     r   test_function_series1r1      ss     (		&! 		& 1~$$Q2.#a&--1b2IIII[^A%q!,111 )r   c                     \         \        3 FX  p  ! R RV 4      pV! \        4      P                  \        ^ ^
4      \	        \        4      P                  \        ^ ^
4      8X  d   KX  Q h	  R# )zCreate our new "cos" function.c                   :   a  ] tR t^)t o RR lt]R 4       tRtV tR# )+test_function_series2.<locals>.my_function2c                <    \        V P                  ^ ,          4      ) # r   )r	   r   r   s   &&r   r   1test_function_series2.<locals>.my_function2.fdiff+   s    DIIaL)))r   c                @    \        V4      pV^ 8X  d   \        ^4      # R# r   r   r   s   &&r   r   0test_function_series2.<locals>.my_function2.eval.   r    r   r!   Nr"   r$   r,   s   @r   my_function2r4   )   s     * & &r   r9   N)r   r   r   r/   r   )r0   r9   s     r   test_function_series2r:   $   sS     (		&1 		& A%%aB/3q6==Ar3JJJJ )r   c                    a \         \        3 F_  p  ! V3R lRV 4      o\        \        4      pS! \        4      pVP	                  \        ^ ^4      VP	                  \        ^ ^4      8X  d   K_  Q h	  R# )aC  
Test our easy "tanh" function.

This test tests two things:
  * that the Function interface works as expected and it's easy to use
  * that the general algorithm for the series expansion works even when the
    derivative is defined recursively in terms of the original function,
    since tanh(x).diff(x) == 1-tanh(x)**2
c                   B   <a  ] tR t^Et o RV3R llt]R 4       tRtV tR# )%test_function_series3.<locals>.mytanhc                R   < ^S! V P                   ^ ,          4      ^,          ,
          # r"   )r   )r   r   mytanhs   &&r   r   +test_function_series3.<locals>.mytanh.fdiffG   s     6$))A,/222r   c                @    \        V4      pV^ 8X  d   \        ^ 4      # R# r   r   r   s   &&r   r   *test_function_series3.<locals>.mytanh.evalJ   r    r   r!   Nr"   r$   )r-   r?   s   @r   r?   r=   E   s     3 & &r   r?   N)r   r   r   r   r/   )r0   efr?   s      @r   test_function_series3rE   8   s\     (		&Q 		& G1Ixx1a AHHQ1$5555 )r   N)sympy.core.functionr   r   sympy.core.sympifyr   %sympy.functions.elementary.hyperbolicr   (sympy.functions.elementary.trigonometricr   r	   sympy.series.limitsr
   	sympy.abcr   r1   r:   rE   r!   r   r   <module>rL      s)    : & 6 ? % 2*K(6r   