Last active
December 13, 2015 20:38
-
-
Save Hydrotoast/4970939 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from math import sqrt | |
def prob10(mass, height, radius, mom_of_inertia, friction_work): | |
g = 9.8 | |
# potential energy | |
mgh = mass * g * height | |
# total work after descent | |
work = mgh + friction_work | |
angular_velocity = sqrt(work / (0.5 * (mass * radius ** 2 + mom_of_inertia))) | |
print(angular_velocity) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment