saturnRingAngle.frink

Download or view saturnRingAngle.frink in plain text format


/** Simple program to calculate Saturn's ring angle to see if they really turn
    edge-on to Earth twice in 2025. */


use planets.frink
use Grid.frink

start = #2025#
end = #2026#
p = new polyline

for d = start to end step 1 day
{
   [deltaU, B, P, a, b] = Planet.SaturnEphemeris[d]
   println["$d\t$a\t$b"]
   p.addPoint[JD[d], -b]
}

g = new graphics
g.add[p]
//grid = new Grid
//grid.auto[g]
//g.add[grid.getGrid[]]
g.write["SaturnRingAngle2025.png",1000,1000]
g.show[]


Download or view saturnRingAngle.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 19920 days, 8 hours, 24 minutes ago.