403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.37
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/scipy/optimize/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/scipy/optimize/tests/__pycache__/test_cython_optimize.cpython-311.pyc
�

d�cN
���dZddlmZddlmZed�ed��D����ZdZ	d\Z
Zd\ZZ
Zd	�eD��Zd
�Zd�Zd�Zd
�Zd�ZdS)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#�&K�|]}d|dzz
V��
dS)g�g$@N�)�.0�xs  �K/usr/lib/python3/dist-packages/scipy/optimize/tests/test_cython_optimize.py�	<genexpr>r	s*����
,�
,�Q�4�!�D�&�=�
,�
,�
,�
,�
,�
,��
)�rg�?)rg@)���MbP?r
rc��g|]}|dz��	S)gUUUUUU�?r)r�a0s  r�
<listcomp>rs��,�,�,�2�b�S�g��,�,�,r
c���tjttt	jdttttttt����tt���dS)N�bisect��rtol�atol�
�npt�assert_allclose�EXPECTED�listr�loop_example�A0�ARGS�XLO�XHI�XTOL�RTOL�MITRrr
r�test_bisectr#*�Y���������"�d�C��d�D�$�O�O�	
�	
��������r
c���tjttt	jdttttttt����tt���dS)N�ridderrrrr
r�test_ridderr'5r$r
c���tjttt	jdttttttt����tt���dS)N�brenthrrrr
r�test_brenthr*@r$r
c���tjttt	jdttttttt����tt���dS)N�brentqrrrr
r�test_brentqr-Kr$r
c��tjtdftztt
ttt��}tj
td|dtt���tjd|d��tjd|d��tjd|d��dS)	Nr�rootr��
iterations��funcalls�	error_num)
r�full_output_examplerrrrr r!r"rrr�assert_equal)�outputs r�test_brentq_full_outputr8Vs���
�
'�	�A���4���c�4��t�5�5�F������V�F�^�$�T�J�J�J�J���Q��|�,�-�-�-���Q��z�*�+�+�+���Q��{�+�,�,�,�,�,r
)�__doc__�
numpy.testing�testingr�scipy.optimize.cython_optimizer�tuple�rangerrrrr r!r"rr#r'r*r-r8rr
r�<module>r?s���
�
�������1�1�1�1�1�1��U�
,�
,�%�%��)�)�
,�
,�
,�,�,�������S�#���d�D�,�,��,�,�,��������������-�-�-�-�-r

Youez - 2016 - github.com/yon3zu
LinuXploit