Skip to content

Commit

Permalink
Use tau.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbm committed Oct 21, 2014
1 parent 23f380d commit 0caf91b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Astro/Orbit/Interpolate.hs
Expand Up @@ -106,6 +106,6 @@ linearPolateMEOEm_OLD (m0`At`t0) (m1`At`t1) t = ( vec2meoe
where
l0 = long $ longitude m0
l1 = long $ longitude m1
l1' = adjustCyclicT (l0`At`t0) (l1`At`t1) period (_2 * pi)
l1' = adjustCyclicT (l0`At`t0) (l1`At`t1) period tau
period = (meoeOrbitalPeriod m0 + meoeOrbitalPeriod m1) / _2
-- -}
2 changes: 1 addition & 1 deletion Astro/Orbit/MEOE.hs
Expand Up @@ -37,7 +37,7 @@ vec2meoe v = vIterate meoe v

-- TODO move orbitalPeriod somewhere more generic?
orbitalPeriod :: Floating a => GravitationalParameter a -> SemiMajorAxis a -> Time a
orbitalPeriod mu (SMA a) = _2 * pi * sqrt (a ^ pos3 / mu)
orbitalPeriod mu (SMA a) = tau * sqrt (a ^ pos3 / mu)

-- | Compute the orbital eccentricity.
eccentricity :: Floating a => MEOE t a -> Dimensionless a
Expand Down

0 comments on commit 0caf91b

Please sign in to comment.