B
    <Z                 @   s<   d dl mZmZmZmZmZmZ dd Zdd Zdd Z	dS )	    )odefuncossinmpfsincmpc              C   sB   dt _dd } tdd d| dg}| d|dd s>td S )N   c             S   s   ddt | d   S )N      )r   )t r   4lib/python3.7/site-packages/mpmath/tests/test_ode.py<lambda>7   s    z&test_odefun_rational.<locals>.<lambda>c             S   s   d|  |d d  gS )Nr   r
   r   )xyr   r   r   r   8   s    r   r
   )r   dpsr   aeAssertionError)fgr   r   r   test_odefun_rational4   s    r   c              C   sR   dt _t} tdd d| dgddd}t| d|dd	  | d dk sNtd S )
Nr   c             S   s   t | |d  |  gS )Nr   )r   )r   r   r   r   r   r   ?   s    z(test_odefun_sinc_large.<locals>.<lambda>r	   g{Gz?   )ZtolZdegreed   r   )r   r   r   r   absr   )r   r   r   r   r   test_odefun_sinc_large;   s    r   c              C   s\   dt _tdd dddg} x<dD ]4}| |\}}|t|sBt|t|s tq W d S )Nr   c             S   s   |d  |d gS )Nr	   r   r   )r   r   r   r   r   r   E   s    z&test_odefun_harmonic.<locals>.<lambda>r   r	   )r   r	   g      @   g@)r   r   r   r   r   r   r   )r   r   csr   r   r   test_odefun_harmonicB   s    
r   N)
Zmpmathr   r   r   r   r   r   r   r   r   r   r   r   r   <module>   s    2