Difference between revisions of "Template:OrbitAltitude"
From Kerbal Space Program Wiki
m (Fix line breaks (?).) |
m (Fix equation (pi^2, not pi^3).) |
||
Line 4: | Line 4: | ||
--> ( <!-- | --> ( <!-- | ||
--> {{{period_s}}}^2 * 6.6726e-11 * {{{mass_kg}}} <!-- | --> {{{period_s}}}^2 * 6.6726e-11 * {{{mass_kg}}} <!-- | ||
− | --> / (4 * pi^ | + | --> / (4 * pi^2) <!-- |
--> ) ^ (1/3) <!-- | --> ) ^ (1/3) <!-- | ||
--> ) / 1000 <!-- | --> ) / 1000 <!-- | ||
Line 13: | Line 13: | ||
! Usage || Produces | ! Usage || Produces | ||
|- | |- | ||
− | | <pre><nowiki>{{OrbitAltitude | period_s= | + | | <pre><nowiki>{{OrbitAltitude | period_s=64980 | mass_kg=4.515e21 | radius_km=320}}</nowiki></pre> || {{OrbitAltitude | period_s=64980 | mass_kg=4.515e21 | radius_km=320}} |
|} | |} | ||
Revision as of 23:15, 15 October 2012
Expression error: Unrecognized punctuation character "{". km
Usage | Produces |
---|---|
{{OrbitAltitude | period_s=64980 | mass_kg=4.515e21 | radius_km=320}} |
0.00 m |
This template calculates the altitude of an orbit, given the mass of the planet (in kg), the planet's radius (in km), and the period of the orbit (in seconds).