+
    0i|                         ^ RI t ^ RIt^ RIHtHt ^ RIHtHt ^ RI	H
t
 R t] P                  ! RR7      R 4       t ! R	 R
4      tR# )    N)assert_equalassert_allcloselog_ndtr	ndtri_exp)assert_func_equalc                 *    \        \        V 4      4      # Nr   ys   &`/var/www/html/photoedit/myenv/lib/python3.14/site-packages/scipy/special/tests/test_ndtri_exp.pylog_ndtr_ndtri_expr      s    IaL!!    class)scopec                  f    \         P                  P                  R 4      p V P                  R4      pV# )i  i  )nprandomRandomStaterandom_sample)random_statepointss     r   uniform_random_pointsr      s+    99((.L''-FMr   c            
         a  ] tR t^t o Rt]P                  P                  RRRRR]P                  ! ]
4      P                  ) .4      R 4       t]P                  P                  R. RO4      R 4       tR tR tR tR	tV tR
# )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_inputc                b    TpVR V,          R ,           ,          p\        \        R VRRR7       R# )g      ?c                     V # r
    r   s   &r   <lambda>2TestNdtriExp.test_very_small_arg.<locals>.<lambda>&       ar   +=Trtolnan_okNr   r   )selfr   r   scaler   s   &&&  r   test_very_small_arg TestNdtriExp.test_very_small_arg   s4     # 55;<		
r   zinterval,expected_rtolc                d    Vw  rEWT,
          V,          V,           p\        \        R  VVRR7       R# )c                     V # r
   r   r   s   &r   r    /TestNdtriExp.test_in_interval.<locals>.<lambda>9   r"   r   Tr$   Nr'   )r(   intervalexpected_rtolr   leftrightr   s   &&&&   r   test_in_intervalTestNdtriExp.test_in_interval+   s3     ,"77$>		
r   c                :   \         P                  P                  \         P                  ! \        4      P
                  ^ ^ ^ ^ .4      p\         P                  ! \        4      P                  ) p\         P                  ! W!.4      p\        V4      p\        WCRR7       R# )r   -q=)r%   N)
r   	nextafterreducefinfofloatmintinyarrayr   r   )r(   bignegtinynegxresults   &    r   test_extremeTestNdtriExp.test_extreme>   sl    * $$bhhuo&9&91aA%FG88E?'''HHg&'#A&.r   c                    \        \        \        P                  ) R .4      \        P                  ) \        P                  .4       R# )g        N)r   r   r   infr(   s   &r   test_asymptotesTestNdtriExp.test_asymptotesZ   s*    Y~."&&"&&0ABr   c                T    \         P                  ! \        R 4      4      '       g   Q hR# )g      ?N)r   isnanr   rF   s   &r   test_outside_domain TestNdtriExp.test_outside_domain]   s    xx	#''''r   r   Ng      $g      Yg    _g@x)))ir#   ))rM   ̗`¿r6   ))rN   ưg|=))rO   r   gư>)__name__
__module____qualname____firstlineno____doc__pytestmarkparametrizer   r9   r:   maxr*   r3   rB   rG   rK   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s      [[tT5%"((5/2E2E1EF

 [[ 	


/8C( (r   r   )rU   numpyr   numpy.testingr   r   scipy.specialr   r   scipy.special._testutilsr   r   fixturer   r   r   r   r   <module>ra      sB      7 - 6" g K( K(r   