Last active
December 9, 2020 20:45
-
-
Save drew2a/995b65b0ddd8b51fac38b86effc32646 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def kilo(value): | |
return f'{value / 1000:.1f}kN' | |
def fall_force(m, fall_factor, elongation_factor=0.3): | |
return (9.8 * 2 * m * fall_factor) / elongation_factor | |
print(kilo(fall_force(80, 2))) # 10.5kN | |
print(kilo(fall_force(80, 1.7))) # 8.9kN | |
print(kilo(fall_force(80, 1))) # 5.2kN | |
print(kilo(fall_force(80, 0.3))) # 1.6kN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment