# filename: look_tbl.py import math # cnt = 0 cnt = 118 # count from 118 to 0 # while (cnt < 128): while (cnt > -1): # print 10*(1.0716451**cnt) # print math.floor(10*(1.0716451**cnt) + 0.5) # print int(math.floor(10*(1.0716451**cnt) + 0.5)) # x = int(math.floor(10*(1.0716451**cnt) + 0.5)) x = int(math.floor(10*(1.0773150**cnt) + 0.5)) # print repr(x) # print one value per line print repr(x)+",", # print all values on one line separated by commas # cnt = cnt + 1 # count up cnt = cnt - 1 # reverse lookup table order (largest to smallest) print "10" # added another 10 to end of table, 0-119