Skip to content

Instantly share code, notes, and snippets.

@airekans
Created July 10, 2012 03:53
Show Gist options
  • Save airekans/3080862 to your computer and use it in GitHub Desktop.
Save airekans/3080862 to your computer and use it in GitHub Desktop.
Earth Velocity
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