Skip to content

Instantly share code, notes, and snippets.

@Hydrotoast
Last active December 13, 2015 20:38
Show Gist options
  • Save Hydrotoast/4970939 to your computer and use it in GitHub Desktop.
Save Hydrotoast/4970939 to your computer and use it in GitHub Desktop.
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