mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-14 07:00:51 -04:00
fix(curriculum): external orbital link in legacy JSA (#46266)
* fix(curriculum): external orbital link in legacy JSA * Shaun for the rescue Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
@@ -8,12 +8,21 @@ dashedName: map-the-debris
|
||||
|
||||
# --description--
|
||||
|
||||
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 \pi \sqrt{\frac{a^{3}}{\mu}}
|
||||
$$
|
||||
|
||||
- $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}`.
|
||||
|
||||
You can read about orbital periods [on Wikipedia](http://en.wikipedia.org/wiki/Orbital_period).
|
||||
|
||||
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 km<sup>3</sup>s<sup>-2</sup>.
|
||||
|
||||
Reference in New Issue
Block a user