Created
July 10, 2012 03:53
-
-
Save airekans/3080862 to your computer and use it in GitHub Desktop.
Earth Velocity
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
def calculate_earth_velocity_from_plain(v_plain, t_plain, t_diff, is_invert): | |
total_distance = v_plain * t_plain | |
return total_distance / ([t_diff, 24 - t_diff][int(is_invert)]) | |
# Wenzhe's input | |
print calculate_earth_velocity_from_plain(950.0, 14, 15, true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment