Ζ
kNφ9c       s,
  d  k  Td Z e e  Z d Ge GHd k Z d   Z d GHe d e i d  e d e i d	  d
 GHe d e i d  e i  e d e i d  e i d  e d e i d  d  d GHe d e i	 d  e i d  e d e i	 d  d  e d e i	 d  e i d  d GHe d e i
 d  e i d  e d e i
 d  d  e d e i
 d  e i d  d GHe d e i d d  e i d  e d e i d d  e i d  e d e i d d  d  e d e i d d  e i d  e d e i d d  e i d  d  GHe d! e i d"  d  e d# e i d$  d  e d% e i d&  d  e d' e i d"  d  e d( e i d$  d  e d) e i d&  d  d* GHe d+ e i e i d  d  e d, e i d  d  e d- e i e i d  d  e d. e i e i  d  d/ GHe d0 e i d  d  e d1 e i d  d e i d  d d  d2 GHe d3 e i d  d e i  e d4 e i d  d  e d5 e i d  e i  d6 GHe d7 e i d  d  e d8 e i d  d  e d9 e i d  d  d: GHe d; e i d"  d  e d< e i d$  d  e d= e i d&  d  e d> e i d"  d  e d? e i d$  d  e d@ e i d&  d  dA GHe dB e i dC d  d  e dD e i dC d"  d  e dE e i dC d&  d  e dF e i dC d  d  e dG e i dC d"  d  e dH e i dC d&  d  dI GHdJ   Z e dK e i d  d" d f  e dL e i d  d d f  e dM e i d  d" d f  e dN e i d  d" d f  dO GHe dP e i d d  d  e dQ e i dR d  dS  dT GHe dU e i d d  d  e dV e i d d  d  e dW e i d d  d"  e dX e i d d  d  dY GHe dZ e i d e i  d  e d[ e i d  d  e d\ e i e i  d  d] GHe d^ e i d_  d  e d` e i d  d  e da e i dC  d  db GHdc   Z e dd e i d&  d" d$ f  e de e i d&  d" d$ f  df GHe dg e i d d  d  e dh e i d d  d  e di e i d d  d  e dj e i d d  d"  dk GHe dl e i d  d  e dm e i e i d  d  e dn e i e i d  d  do GHe dp e i d  d  e dq e i d  d e i d  d d  e dr e i d  e i d  d  ds GHe dt e i d  d  e du e i d  d  e dv e i d  d  dw GHe dx e i d  d  e dy e i e i d  d  e dz e i e i d  d  d{ GHe d| e i  d  d  e d} e i  d  e i  d  d  d~   Z! e" o e!   n d S(   (   s   *s   1e-05s   math module, testing with epsNc    s5   t  | |  t j o t d |  | | f  n d  S(   Ns   %s returned %f, expected %f(   s   abss   values   expecteds   epss
   TestFaileds   name(   s   names   values   expecteds+   /mit/python/lib/python2.0/test/test_math.pys   testit s    s	   constantss   pif	3.1415926s   ef	2.7182818s   acoss   acos(-1)i   s   acos(0)i    i   s   acos(1)s   asins   asin(-1)s   asin(0)s   asin(1)s   atans   atan(-1)i   s   atan(0)s   atan(1)s   atan2s   atan2(-1, 0)s   atan2(-1, 1)s   atan2(0, 1)s   atan2(1, 1)s   atan2(1, 0)s   ceils	   ceil(0.5)f0.5s	   ceil(1.0)f1.0s	   ceil(1.5)f1.5s
   ceil(-0.5)s
   ceil(-1.0)s
   ceil(-1.5)s   coss
   cos(-pi/2)s   cos(0)s	   cos(pi/2)s   cos(pi)s   coshs   cosh(0)s   cosh(2)-2*cosh(1)**2s   exps   exp(-1)s   exp(0)s   exp(1)s   fabss   fabs(-1)s   fabs(0)s   fabs(1)s   floors
   floor(0.5)s
   floor(1.0)s
   floor(1.5)s   floor(-0.5)s   floor(-1.0)s   floor(-1.5)s   fmods
   fmod(10,1)i
   s   fmod(10,0.5)s   fmod(10,1.5)s   fmod(-10,1)s   fmod(-10,0.5)s   fmod(-10,1.5)s   frexpc    sh   | \ } } | \ } } t  | |  t j p
 | | j o( t d |  | | f | | f f  n d  S(   Ns   %s returned %s, expected %s(   s   abss   mants   emants   epss   exps   eexps
   TestFaileds   name(   s   names   .2s   .4s   mants   exps   emants   eexps+   /mit/python/lib/python2.0/test/test_math.pys	   testfrexpW s   $s	   frexp(-1)s   frexp(0)s   frexp(1)s   frexp(2)s   hypots
   hypot(0,0)s
   hypot(3,4)i   i   s   ldexps
   ldexp(0,1)s
   ldexp(1,1)s   ldexp(1,-1)s   ldexp(-1,1)s   logs   log(1/e)s   log(1)s   log(e)s   log10s
   log10(0.1)f0.1s   log10(1)s	   log10(10)s   modfc    sl   | \ } } | \ } } t  | |  t j p t  | |  o( t d |  | | f | | f f  n d  S(   Ns   %s returned %s, expected %s(   s   abss   v1s   e1s   epss   v2s   e2s
   TestFaileds   name(   s   names   .2s   .4s   v1s   v2s   e1s   e2s+   /mit/python/lib/python2.0/test/test_math.pys   testmodfv s   (s	   modf(1.5)s
   modf(-1.5)s   pows   pow(0,1)s   pow(1,0)s   pow(2,1)s	   pow(2,-1)s   sins   sin(0)s	   sin(pi/2)s
   sin(-pi/2)s   sinhs   sinh(0)s   sinh(1)**2-cosh(1)**2s   sinh(1)+sinh(-1)s   sqrts   sqrt(0)s   sqrt(1)s   sqrt(4)s   tans   tan(0)s	   tan(pi/4)s
   tan(-pi/4)s   tanhs   tanh(0)s   tanh(1)+tanh(-1)c     s»   d GHy t  i d  }  Wn t d   n X|  d j o t d   n y t  i d  }  Wn t j
 o n Xt d   y t  i d  }  Wn t j
 o n Xt d   d  S(	   Ns
   exceptionsi Κ;s6   underflowing exp() should not have raised an exceptioni    s)   underflowing exp() should have returned 0s.   overflowing exp() didn't trigger OverflowErrorf1.0s    sqrt(-1) didn't raise ValueError(   s   maths   exps   xs
   TestFaileds   OverflowErrors   sqrts
   ValueError(   s   xs+   /mit/python/lib/python2.0/test/test_math.pys   test_exceptions’ s"    (#   s   test_supports   sepss   evals   epss   maths   testits   pis   es   acoss   asins   atans   atan2s   ceils   coss   coshs   exps   fabss   floors   fmods	   testfrexps   frexps   hypots   ldexps   logs   log10s   testmodfs   modfs   pows   sins   sinhs   sqrts   tans   tanhs   test_exceptionss   verbose(    s+   /mit/python/lib/python2.0/test/test_math.pys   ? sθ   			 " " %%##! /!	!!	" "/' "'	 