Shop OBEX P1 Docs P2 Docs Learn Events
Antikythera: Calculate the phase of the moon! — Parallax Forums

Antikythera: Calculate the phase of the moon!

RaymanRayman Posts: 14,887
edited 2011-02-07 13:21 in Propeller 1
Here's a little app that I wrote for my wristwatch a few years ago and just ported to SPIN...

I was inspired when more details of the Antikythera mechanism were discovered a few years ago:
http://en.wikipedia.org/wiki/Antikythera_mechanism

Anyway, just give it the date your interested in, and this program will calculate the phase of the moon in a similar way to the Antikythera mechanism.
It's accurate to 1 day in 500 years.

No floating point here, this is integer math.

Comments

  • HumanoidoHumanoido Posts: 5,770
    edited 2011-02-07 12:23
    Will you add the MIT License notice so we can utilize the code with our astronomy apps? Thanks.
  • RaymanRayman Posts: 14,887
    edited 2011-02-07 13:21
    Sure, I think I can do that...
Sign In or Register to comment.