
    Џkhg                     |    d dl Z d dlZd dlmZ d dlmZ  G d d      Z G d d      Z	 G d d      Z
 G d	 d
      Zy)    Nassert_allclosec                       e Zd Zd Zd Zy)TestExp1c                     t        j                  t        j                  d            sJ t        j                  t	        dd            j
                  t        j                  t	        dd            j
                   k(  sJ t        t        j                  t	        dd            t        j                  d      dd       t        t        j                  t	        dd            t        j                  d      dd       y )Nr                #B;V瞯<atolrtol      #Bǻ)npisnanscexp1compleximagr   selfs    j/var/www/teggl/fontify/venv/lib/python3.12/site-packages/scipy/special/tests/test_exponential_integrals.pytest_branch_cutzTestExp1.test_branch_cut
   s    xx$$$wwwr1~&++WWWR&',,,
 	
 
 	GGGBN#GGK 		
 	GGGB%&GGK 		
    c                     t        j                  t        d             }t        j                  t        d             }t        |j                  |j                  dd       y )Ng_93@g3@r   r   r   )r   r   r   r   r   )r   abs      r   test_834zTestExp1.test_834   sD    GGWZ(()GGWZ(()QU;r   N)__name__
__module____qualname__r   r    r   r   r   r      s    
&<r   r   c                       e Zd Zej                  j                  ddej                  dfg      d        Zej                  j                  dg d      d        Z	y)TestScaledExp1zx, expected)r   r      c                 P    t         j                  j                  |      }||k(  sJ y )N)r   _ufuncs_scaled_exp1r   xexpectedys       r   test_limitszTestScaledExp1.test_limits&   s"    JJ##A&H}}r   ))g}:g17*;)g?gi!?)gCl?g|?)      ?g|GG?)g5^I?g79?)g      @gޟ5H?)g      $@gIL?)g      Y@gtߚΫ?)g     @@gzޓ_?)g     @@gW?)g     @gxIt?)g     @gQ7t?)g     @gmJu?)g     @@gݓx?)g     @gS.?)g    _BgA?)g  4&kCg?c                 ^    t         j                  j                  |      }t        ||d       y )NgV瞯<)r   )r   r'   r(   r   r)   s       r   test_scaled_exp1zTestScaledExp1.test_scaled_exp17   s$    ( JJ##A&8%0r   N)
r   r    r!   pytestmarkparametrizer   infr-   r0   r"   r   r   r$   r$   $   s]    [[]Vbffa[,AB C  [[] !&1'!&1r   r$   c            
           e Zd Zej                  j                  d ej                   edd             ej                   edd             ej                  d      g      d        Z	d Z
d Zy)	TestExpiresultr   r   r	   c                 &    d}t        ||dd       y )Ng̿r   g+=r   r   )r   r7   desireds      r   r   zTestExpi.test_branch_cutQ   s     *ae<r   c                     t        j                  d      }t        j                  d      }t        |j                  |j                  dd       t        |j                  |j                   dd       y )Nr
   r   r   r   r   )r   expir   realr   )r   lim_from_abovelim_from_belows      r   test_near_branch_cutzTestExpi.test_near_branch_cutZ   sc    --		
 	   		
r   c           	          t        t        j                  t        dd            t        j                  t        dd            dd       y )Nr%   r   r	   r   r   )r   r   r;   r   r   s    r   %test_continuity_on_positive_real_axisz.TestExpi.test_continuity_on_positive_real_axisj   s5    GGGAqM"GGGAt$%		
r   N)r   r    r!   r1   r2   r3   r   r;   r   r   r?   rA   r"   r   r   r6   r6   O   sj    [[XAD!"( 
=
=
 
r   r6   c                       e Zd Zd Zy)TestExpnc           	          t        t        j                  t        j                  dd      t        j                  dd      g            sJ y )Nr   r.   r%   g      )allr   r   r   expnr   s    r   test_out_of_domainzTestExpn.test_out_of_domainu   s4    288RWWR-rwwq$/?@ABBBr   N)r   r    r!   rG   r"   r   r   rC   rC   s   s    Cr   rC   )r1   numpyr   numpy.testingr   scipy.specialspecialr   r   r$   r6   rC   r"   r   r   <module>rL      s=      ) < <8(1 (1V!
 !
HC Cr   