+
    /iN
                         R t ^ RIHt ^ RIHt ];QJ d    . R ]! ^
4       4       F  NK  	  5M! R ]! ^
4       4       4      tRt	RRut
tRR^
uttt] U u. uF  q ) R,          NK  	  up tR tR tR	 tR
 tR tR# u up i )a8  
Test Cython optimize zeros API functions: ``bisect``, ``ridder``, ``brenth``,
and ``brentq`` in `scipy.optimize.cython_optimize`, by finding the roots of a
3rd order polynomial given a sequence of constant terms, ``a0``, and fixed 1st,
2nd, and 3rd order terms in ``args``.

.. math::

    f(x, a0, args) =  ((args[2]*x + args[1])*x + args[0])*x + a0

The 3rd order polynomial function is written in Cython and called in a Python
wrapper named after the zero function. See the private ``_zeros`` Cython module
in `scipy.optimize.cython_optimze` for more information.
N)_zerosc              #   B   "   T F  pRVR,          ,
          x  K  	  R# 5i)       @g      $@Ng        ).0xs   & g/var/www/html/photoedit/myenv/lib/python3.14/site-packages/scipy/optimize/tests/test_cython_optimize.py	<genexpr>r	      s     
,)Q4!D&==)s           r   gMbP?c                      \         P                  ! \        \        \        P
                  ! R \        \        \        \        \        \        \        4      4      \        \        R7       R# )bisectrtolatolNnptassert_allcloseEXPECTEDlistr   loop_exampleA0ARGSXLOXHIXTOLRTOLMITRr       r   test_bisectr   *   >    "dCdD$O	
 r   c                      \         P                  ! \        \        \        P
                  ! R \        \        \        \        \        \        \        4      4      \        \        R7       R# )ridderr   Nr   r   r   r   test_ridderr"   5   r   r   c                      \         P                  ! \        \        \        P
                  ! R \        \        \        \        \        \        \        4      4      \        \        R7       R# )brenthr   Nr   r   r   r   test_brenthr%   @   r   r   c                      \         P                  ! \        \        \        P
                  ! R \        \        \        \        \        \        \        4      4      \        \        R7       R# )brentqr   Nr   r   r   r   test_brentqr(   K   r   r   c                     \         P                  ! \        ^ ,          3\        ,           \        \
        \        \        \        4      p \        P                  ! \        ^ ,          V R,          \        \        R7       \        P                  ! ^V R,          4       \        P                  ! ^V R,          4       \        P                  ! ^ V R,          4       R# )    rootr   
iterationsfuncalls	error_numN)r   full_output_exampler   r   r   r   r   r   r   r   r   r   assert_equal)outputs    r   test_brentq_full_outputr2   V   s    ''	A4c4t5FVF^$TJQ|,-Qz*+Q{+,r   )r
   r
   g      ?gUUUUUU?)__doc__numpy.testingtestingr   scipy.optimize.cython_optimizer   tupleranger   r   r   r   r   r   r   r   r   r"   r%   r(   r2   )a0s   0r   <module>r:      s     1 U
,%)
,UU
,%)
,,S% dD)+,2Sg,-u -s   A;