less copy protection, more size visualization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
145 B

  1. import sys
  2. size = 500
  3. od = float(sys.argv[1])
  4. id = float(sys.argv[2])
  5. thickness = (od - id) / 2
  6. print("{0:2f}".format(thickness * size / od))