| 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 : |
�
d�c| � � � d dl Z d dlZd dlmZmZ d dlmZmZ d dl m
Z
d� Z e j d�� � d� � � Z
G d � d
� � ZdS )� N)�assert_equal�assert_allclose��log_ndtr� ndtri_exp)�assert_func_equalc �: � t t | � � � � S �Nr ��ys �D/usr/lib/python3/dist-packages/scipy/special/tests/test_ndtri_exp.py�log_ndtr_ndtri_expr s � ��I�a�L�L�!�!�!� �class)�scopec �n � t j � d� � } | � d� � }|S )Ni� i� )�np�random�RandomState�
random_sample)�random_state�pointss r
�uniform_random_pointsr s/ � ��9�(�(��.�.�L�
�
'�
'��
-�
-�F��Mr c
�� � e Zd ZdZej � ddddd ej e � � j
g� � d� � � Zej � dg d �� � d
� � � Zd� 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 $�g Y�g _��g@��x��c �T � |}|d|z dz z }t t d� |dd�� � d S )Ng �?c � � | S r
� r s r
�<lambda>z2TestNdtriExp.test_very_small_arg.<locals>.<lambda>&