Skip to content

According to Kepler's Third Law, the orbital period T of two point masses orbiting each other in a circular or elliptic orbit is:

Notifications You must be signed in to change notification settings

Nobledsmarts/Map-the-Debris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Map-the-Debris

According to Kepler's Third Law, the orbital period T of two point masses orbiting each other in a circular or elliptic orbit is:

T=2πa3μ−−−√

a is the orbit's semi-major axis μ=GM is the standard gravitational parameter G is the gravitational constant, M is the mass of the more massive body. Return a new array that transforms the elements' average altitude into their orbital periods (in seconds).

The array will contain objects in the format {name: 'name', avgAlt: avgAlt}.

The values should be rounded to the nearest whole number. The body being orbited is Earth.

The radius of the earth is 6367.4447 kilometers, and the GM value of earth is 398600.4418 km3s-2.