Advertisement
karlicoss

Скриптуй @ подгоняй

Oct 25th, 2011
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def width(L, wlen, d):
  2.     return L * wlen / d
  3.  
  4. wlen = 650 * 10 ** -9
  5. d = map(lambda x : x * 10 ** -6, [71, 59, 35.33, 28.33])
  6. L = map(lambda x : x * 10 ** -3, [320, 420, 520])
  7.  
  8. for di in d:
  9.     print "d = %f" % di
  10.     for l in L:
  11.         print "L = %f, dx = %f" % (l, width(l, wlen, di))
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement