Skip to content

Commit

Permalink
Better syntax for big numbers
Browse files Browse the repository at this point in the history
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev>
  • Loading branch information
onekiloparsec committed Apr 24, 2024
1 parent c11d0fa commit e48714d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/earth/moon/coordinates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import { DEG2RAD, RAD2DEG } from '@/constants'
export function getMeanLongitude (jd: JulianDay): Degree {
const T = getJulianCentury(jd)

const value = 218.3164477
+ 481267.88123421 * T
- 0.0015786 * T * T
+ T * T * T / 538841
- T * T * T * T / 65194000
const value = 218.316_447_7
+ 481_267.881_234_21 * T
- 0.001_578_6 * T * T
+ T * T * T / 538_841
- T * T * T * T / 65_194_000

return fmod360(value)
}
Expand Down

0 comments on commit e48714d

Please sign in to comment.