13 shrink = shrink * math.cos(angle)
14 return angle/math.pi * units
23 ax = math.atan(2.0**n)
25 errlo = abs( alo - ax )
26 errhi = abs( ahi - ax )
31 sys.stdout.write( comma + repr(
int(hi) ) )
36 print "table of arctan( 1/2^n ) for PI = " + repr(units/65536.0) +
" units"
55 tlo = math.tan(lo/scale)
56 thi = math.tan(hi/scale)
58 errlo = abs( tlo - x )
59 errhi = abs( thi - x )
68 sys.stdout.write( comma + repr(
int(angle2) ) )
71 shrink = shrink * math.cos( angle2/scale)
75 print "shrink factor = " + repr( shrink )
76 print "shrink factor 2 = " + repr( shrink * (2.0**32) )
77 print "expansion factor = " + repr(1/shrink)