JavaScript JPL Ephemeris Calculator

This is an example of how to implement a Ephemeris Calculator for the JPL Ephemeris. The main part of the code is in de405.js. This implementation is for DE405, and I have included data only for Julian Dates 2458832.5 to 2466160.5 (Dec 15, 2019 to Jan 7, 2040). I also have a page of Test Vectors for the test data provided by the JPL for that date range.

Julian Date:
PlanetX kmdX km/dayY kmdY km/dayZ kmdZ km/day
Mercury-6706768.7669439973346870.03970893-60444568.85087551-17014.263564507186-31751664.901437085-356081.96677701955
Venus107346481.9379654-316207.698057175913402909.2167394782725717.673879842-810512.65343300161246410.9077162852
EMB-28024426.434316643-2571789.4069350734133607042.40667258-449960.05688103557922381.073446326-195012.4788125708
Mars-196802758.162234041258046.4138314305-122777504.50364281-1396630.0759590121-51040883.465730175-674539.1771451322
Jupiter79251689.11714181109251.0900613351-713259190.5678678164640.59563700494-307656886.8437739643573.09529020202
Saturn568217363.0582446726138.2588618563-1274115973.4354298301528.62779334676-550745920.139098993271.35872338653
Uranus2426387339.7116356-342453.862634051771573236882.5728962414193.4362097668654717656.4335401186248.5182576156
Neptune4374195007.23710196645.62671097243-840168189.323691428249.81014697114-452786201.84418356172879.00427564705
Pluto1941167764.8470428444596.72538726666-4280899391.8467193127561.56415040215-1920805724.1723857-94148.80320825944
Moon402597.8484663493253.834572156429-25.0646459718832877037.54661664335-39974.7221510879731885.033741328763
Sun-569515.4151713238-1249.0950134893621019497.4301149976-288.39757798915707445798.9496562848-87.48659763981662
Nutations-0.000080167886025925951.2550262987765672e-7-0.000008118180211684731-2.7508572778966824e-7
Librations-0.068908976103129310.0000412062668779127660.413616473078469660.000216339556368341474244.3237399800790.22995357371345498
Mantel Vel
TT-TDB
Earth-28029318.233940683-2571828.942930602133607042.71122271-450896.108186355957922866.78973004-195399.90064471058