Difference between revisions of "Template:OrbitSynodicPeriod"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "{{#expr: 1/((1/{{{inner}}}) - (1/{{{outer}}}))}}<noinclude>Documentation will be following! OrbitSynodicPeriod</noinclude>")
 
m (*renamed Parameter Table to Parameter table;)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#expr: 1/((1/{{{inner}}}) - (1/{{{outer}}}))}}<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 not for Kerbin and Kerbol but all other celestial bodies.
  
[[Category:Templates|OrbitSynodicPeriod]]</noinclude>
+
:<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=
 +
{{Parameter row|1|Siderial period for celestial body a.}}
 +
{{Parameter row|2|Siderial period for celestial body b.|Kerbin's siderial period in seconds (9203545)}}
 +
}}
 +
 
 +
[[Category:Templates]]</noinclude>

Latest revision as of 12:12, 19 December 2014

Calculates the synodic orbital period. This is roughly the time between two transfer windows. It works not for Kerbin and Kerbol but all other celestial bodies.

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.

# Optional Description Default
1 No Siderial period for celestial body a.
2 Yes Siderial period for celestial body b. Kerbin's siderial period in seconds (9203545)