ó
;™xTc           @   s_   d  d l  m Z d  d l m Z d  d l m Z d  d l Z d „  Z e d k r[ e ƒ  n  d S(   iÿÿÿÿ(   t   division(   t   math_module(   t   approx_equalNc          C   sª   d }  t  j j |  ƒ } | j ƒ  |  k s0 t ‚ xn t |  ƒ D]` } | t |  ƒ } | d t j } t	 | j
 | ƒ t t j | ƒ t j | ƒ ƒ ƒ s= t ‚ q= Wd GHd  S(   Ni   i   t   OKi   (   R   t   extt   cos_sin_tablet   n_pointst   AssertionErrort   xranget   floatt   matht   piR   t   gett   complext   cost   sin(   t   nR   t   it   ut   x(    (    sN   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/math/boost_python/tst_math.pyt   exercise   s    =t   __main__(	   t
   __future__R    t   cctbxR   t   libtbx.test_utilsR   R
   R   t   __name__(    (    (    sN   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/math/boost_python/tst_math.pyt   <module>   s   	
