Difference between revisions of "Template:OrbitVelocity"

From Kerbal Space Program Wiki
Jump to: navigation, search
(-radius_km isn't needed; +use OrbitAltitude/Core;)
(!missing open comment;)
Line 1: Line 1:
 
{{#expr: <!--
 
{{#expr: <!--
 
-->    ( <!--
 
-->    ( <!--
-->        {{G}} * {{{mass_kg}}} / {{OrbitAltitude/Core|{{{period_s}}}|{{{mass_kg}}}|0}}
+
-->        {{G}} * {{{mass_kg}}} / {{OrbitAltitude/Core|{{{period_s}}}|{{{mass_kg}}}|0}} <!--
 
-->    ) ^ 0.5 <!--
 
-->    ) ^ 0.5 <!--
 
--> {{{round|}}} }} {{{suffix|m/s}}}<noinclude>
 
--> {{{round|}}} }} {{{suffix|m/s}}}<noinclude>

Revision as of 19:24, 22 April 2013

Expression error: Unrecognized punctuation character "{". m/s

Usage Produces
{{OrbitVelocity | period_s=64980 | mass_kg=4.515e21}}
0.00 m/s
{{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | round=round2}}
0.00 m/s
{{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | round=round2 | suffix=}}
0.00 m/s

This template calculates the velocity of an orbit, given the mass of the planet (in kg) and the period of the orbit (in seconds).