Difference between revisions of "Template:OrbitSynodicPeriod"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Auto: Built-in filters (Review RC#28598))
m (*renamed Parameter Table to Parameter table;)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<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]]'s moons and [[Kerbol]]'s planets but not for Kerbin itself.
+
<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.
  
 
:<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>
 
:<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>
Line 5: Line 5:
 
== Parameter ==
 
== 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.
 
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 table|name=number|parameters=
{{ParameterRow|1|Siderial period for celestial body a.}}
+
{{Parameter row|1|Siderial period for celestial body a.}}
{{ParameterRow|2|Siderial period for celestial body b.|Kerbin's siderial period in seconds (9203545)}}
+
{{Parameter row|2|Siderial period for celestial body b.|Kerbin's siderial period in seconds (9203545)}}
 
}}
 
}}
  
[[Category:Templates|OrbitSynodicPeriod]]</noinclude>
+
[[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)