U
    ZÊ¹j  ã                   @   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   úT/var/www/html/bwave/python/venv/lib/python3.8/site-packages/mpmath/tests/test_ode.pyÚ<lambda>7   ó    z&test_odefun_rational.<locals>.<lambda>c                 S   s   d|  |d d  gS )Néþÿÿÿr   r
   r   ©ÚxÚyr   r   r   r   8   r   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   z(test_odefun_sinc_large.<locals>.<lambda>r	   g{®Gáz„?é   )ZtolZdegreeéd   r   )r   r   r   r   Úabsr   r   r   r   r   Útest_odefun_sinc_large;   s    r   c                  C   sX   dt _tdd„ dddgƒ} dD ]4}| |ƒ\}}| t|ƒ¡s@t‚| t|ƒ¡st‚qd S )Nr   c                 S   s   |d  |d gS )Nr	   r   r   r   r   r   r   r   E   r   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