Difference between revisions of "Template:OrbitSynodicPeriod"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (-names for parameters; +default for 2nd parameter = Kerbin sideral period; +first mustn't be the inner and second the outer;)
(+documentation;)
Line 1: Line 1:
{{#expr: abs(1/((1/{{{1}}}) - (1/{{{2|9203545}}})))}}<noinclude>Documentation will be following!
+
<includeonly>{{#expr: abs(1/((1/{{{1}}}) - (1/{{{2|9203545}}})))}}</includeonly><noinclude>Calculates the synodic orbital period. This is roughly the time between two transfer windows. It works only for [[Kerbin|Kerbin's]] moons and [[Kerbol|Kerbol's]] planets but not for Kerbin itself.
 +
 
 +
:<math>\text{orbital period}_\text{synodic} = \left|\frac{1}{\frac{1}{\text{period a}_\text{sideral}} - \frac{1}{\text{period b}_\text{sideral}}}\right|</math>
 +
 
 +
== Parameter ==
 +
Please note, that both periods have to be in the same time unit. It is recommended to use seconds, especially as the default value for the second parameter is in seconds.
 +
{{Parameter Table|name=number|parameters=
 +
{{ParameterRow|1|Siderial period for celestial body a.}}
 +
{{ParameterRow|2|Siderial period for celestial body b.|Kerbin's siderial period in seconds (9203545)}}
 +
}}
  
 
[[Category:Templates|OrbitSynodicPeriod]]</noinclude>
 
[[Category:Templates|OrbitSynodicPeriod]]</noinclude>

Revision as of 12:20, 2 June 2013

Calculates the synodic orbital period. This is roughly the time between two transfer windows. It works only for Kerbin's moons and Kerbol's planets but not for Kerbin itself.

Parameter

Please note, that both periods have to be in the same time unit. It is recommended to use seconds, especially as the default value for the second parameter is in seconds. Template:Parameter Table