o
    	h                     @   s   d dl Z d dlmZmZ d dlmZ d dlmZ zd dlZW n e	y+   edZY nw zd dl
ZW n e	y?   edZY nw e jjeedeedG d	d
 d
ZdS )    N)MissingModulecheck_version)mp_assert_allclose)lagrange_inversionsympympmathz0.7z0.19c                   @   s4   e Zd Zejddd Zejddd ZdS )TestInversionzrtol only 2e-9, see gh-6938c                 C   sf   t d$ t dd dd}t dd dd}t|}t|| W d    d S 1 s,w   Y  d S )N   c                 S   s   t d|  S N   )mplogx r   ]/var/www/vscode/kcb/lib/python3.10/site-packages/scipy/special/tests/test_precompute_utils.py<lambda>       z(TestInversion.test_log.<locals>.<lambda>r   
   c                 S   s   t | d S r
   )r   expr   r   r   r   r      r   )r   workdpstaylorr   r   )self	logcoeffs	expcoeffsinvlogcoeffsr   r   r   test_log   s   "zTestInversion.test_logzrtol only 1e-15, see gh-6938c                 C   sf   t d$ t t jdd}t t jdd}t|}t||dd W d    d S 1 s,w   Y  d S )Nr	   r   r   gKH9)atol)r   r   r   sinasinr   r   )r   	sincoeffs
asincoeffsinvsincoeffsr   r   r   test_sin   s   "zTestInversion.test_sinN)__name__
__module____qualname__pytestmarkxfail_on_32bitr   r#   r   r   r   r   r      s
    


r   )r'   scipy.special._testutilsr   r   scipy.special._mptestutilsr   scipy.special._precompute.utilsr   r   ImportErrorr   r   r(   slowr   r   r   r   r   <module>   s$    