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.
|
- # calculates the diameter in pixels for the inner part of a pipe
-
- import sys
-
- size = 500
-
- od = float(sys.argv[1])
- id = float(sys.argv[2])
-
- thickness = (od - id) / 2
-
- print("{0:2f}".format(thickness * size / od))
|