Ζ
kNφ9c       s     d  k  T d Z  e e  Z  d Ge GH	 d k Z  d   Z  d GH e d e i d   e d e i d	   d
 GH e d e i d  e i   e d e i d  e i d   e d e i d  d   d GH e d e i	 d  e i d   e d e i	 d  d   e d e i	 d  e i d   d GH e d e i
 d  e i d    e d e i
 d  d  ! e d e i
 d  e i d  # d GH$ e 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  GH+ 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  0 e d) e i d&  d  2 d* GH3 e d+ e i e i d  d  4 e d, e i d  d  5 e d- e i e i d  d  6 e d. e i e i  d  8 d/ GH9 e d0 e i d  d  : e d1 e i d  d e i d  d d  < d2 GH= e d3 e i d  d e i  > e d4 e i d  d  ? e d5 e i d  e i  A d6 GHB e d7 e i d  d  C e d8 e i d  d  D e d9 e i d  d  F d: GHG e d; e i d"  d  H e d< e i d$  d  I e d= e i d&  d  J e d> e i d"  d  K e d? e i d$  d  L e d@ e i d&  d  N dA GHO e dB e i dC d  d  P e dD e i dC d"  d  Q e dE e i dC d&  d  R e dF e i dC d  d  S e dG e i dC d"  d  T e dH e i dC d&  d  V dI GHW dJ   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  a dO GHb e dP e i d d  d  c e dQ e i dR d  dS  e dT GHf e dU e i d d  d  g e dV e i d d  d  h e dW e i d d  d"  i e dX e i d d  d  k dY GHl e dZ e i d e i  d  m e d[ e i d  d  n e d\ e i e i  d  p d] GHq e d^ e i d_  d  r e d` e i d  d  s e da e i dC  d  u db GHv dc   Z { e dd e i d&  d" d$ f  | e de e i d&  d" d$ f  ~ df GH e 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 GH e dl e i d  d   e dm e i e i d  d   e dn e i e i d  d   do GH e 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 GH e dt e i d  d   e du e i d  d   e dv e i d  d   dw GH e dx e i d  d   e dy e i e i d  d   e dz e i e i d  d   d{ GH e 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    s>     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    sq   W | \ } } | \ } } X t  | |  t j p
 | | j o+ Y 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    su   v | \ } } | \ } } w t  | |  t j p t  | |  o+ x 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 GH€ y ₯ t  i d  }  Wn ¦ © t d   n X« |  d j o ¬ t d   n ° y ± t  i d  }  Wn ² t j
 o
 ³ n X΅ t d   » y Ό t  i d  }  Wn ½ t j
 o
 Ύ n Xΐ t 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θ   	 #%#%#((&&$# 2$  !$""" !$"% #%2*#%* 
