a
    Qe                     @   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	yV   edZY n0 zd dl
ZW n e	y~   edZY n0 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   sd   t dF t dd dd}t dd dd}t|}t|| W d    n1 sV0    Y  d S )N   c                 S   s   t d|  S N   )mplogx r   ]/var/www/sunrise/env/lib/python3.9/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   )selfZ	logcoeffsZ	expcoeffsZinvlogcoeffsr   r   r   test_log   s
    zTestInversion.test_logzrtol only 1e-15, see gh-6938c                 C   sd   t dF t t jdd}t t jdd}t|}t||dd W d    n1 sV0    Y  d S )Nr	   r   r   gKH9)Zatol)r   r   r   sinasinr   r   )r   Z	sincoeffsZ
asincoeffsZinvsincoeffsr   r   r   test_sin   s
    zTestInversion.test_sinN)__name__
__module____qualname__pytestmarkZxfail_on_32bitr   r   r   r   r   r   r      s   


r   )r    Zscipy.special._testutilsr   r   Zscipy.special._mptestutilsr   Zscipy.special._precompute.utilsr   r   ImportErrorr   r   r!   Zslowr   r   r   r   r   <module>   s   