ó
<Zc           @   sM   d  d l  m Z m Z m Z m Z m Z m Z d „  Z d „  Z d „  Z	 d S(   iÿÿÿÿ(   t   odefunt   cost   sint   mpft   sinct   mpc          C   sY   d t  _ d „  }  t d „  d |  d ƒ g ƒ } |  d ƒ j | d ƒ d ƒ sU t ‚ d  S(   Ni   c         S   s   d d t  |  ƒ d S(   Ni   i   (   R   (   t   t(    (    s4   lib/python2.7/site-packages/mpmath/tests/test_ode.pyt   <lambda>7   s    c         S   s   d |  | d d g S(   Niþÿÿÿi    i   (    (   t   xt   y(    (    s4   lib/python2.7/site-packages/mpmath/tests/test_ode.pyR   8   s    i    i   (   R   t   dpsR    t   aet   AssertionError(   t   ft   g(    (    s4   lib/python2.7/site-packages/mpmath/tests/test_ode.pyt   test_odefun_rational4   s    		c          C   ss   d t  _ t }  t d „  d |  d ƒ g d d d d ƒ} t |  d ƒ | d ƒ d	 ƒ |  d ƒ d k  so t ‚ d  S(
   Ni   c         S   s   t  |  ƒ | d |  g S(   Ni    (   R   (   R   R	   (    (    s4   lib/python2.7/site-packages/mpmath/tests/test_ode.pyR   ?   s    i   t   tolg{®Gáz„?t   degreei   id   i    (   R   R
   R   R    t   absR   (   R   R   (    (    s4   lib/python2.7/site-packages/mpmath/tests/test_ode.pyt   test_odefun_sinc_large;   s    	*c          C   s   d t  _ t d „  d d d g ƒ }  xe d d d d d g D]N } |  | ƒ \ } } | j t | ƒ ƒ sm t ‚ | j t | ƒ ƒ s: t ‚ q: Wd  S(   Ni   c         S   s   | d | d g S(   Ni   i    (    (   R   R	   (    (    s4   lib/python2.7/site-packages/mpmath/tests/test_ode.pyR   E   s    i    i   g      @i   gš™™™™™@(   R   R
   R    R   R   R   R   (   R   R   t   ct   s(    (    s4   lib/python2.7/site-packages/mpmath/tests/test_ode.pyt   test_odefun_harmonicB   s    	N(
   t   mpmathR    R   R   R   R   R   R   R   R   (    (    (    s4   lib/python2.7/site-packages/mpmath/tests/test_ode.pyt   <module>   s   .2		