$30 off During Our Annual Pro Sale. View Details »

How to calculate the phase of the moon very, very badly!!

André Arko
February 24, 2019

How to calculate the phase of the moon very, very badly!!

This talk is about how, despite “common knowledge”, lunar cycles are not 28 days long, and in fact lunar cycles don’t have a single numerical length! You’ll hear about several very bad ways to calculate the phases of the moon, why they seemed reasonable at the time, and exactly how it took three years from the time one app shipped to the App Store before the calendar was even arguably correct.

André Arko

February 24, 2019
Tweet

More Decks by André Arko

Other Decks in Programming

Transcript

  1. Everyone Knows a
    Lunar Cycle is 28 Days
    or, falsehoods werewolves believe about time

    View Slide

  2. View Slide

  3. View Slide

  4. View Slide

  5. View Slide

  6. View Slide

  7. View Slide

  8. View Slide

  9. 27.321661 days
    a sidereal month

    View Slide

  10. ...two years later...

    View Slide

  11. M T W Th F S Su
        
          
          
          

    View Slide

  12. M T W Th F S Su
       
          
          
          
     

    View Slide

  13. M T W Th F S Su
      
          
          
          
      

    View Slide

  14. M T W Th F S Su
     
          
          
          
       

    View Slide

  15. ⁉ ⁉ ⁉ ⁉

    View Slide

  16. sidereal schmidereal

    View Slide

  17. lunar phases are
    synodic months

    View Slide

  18. synodic months are
    29.530587981 days

    View Slide

  19. averages are lie-candy
    for your brain

    View Slide

  20. thanks
    BDAstroCalc!

    View Slide


  21. 0 0.5 0.9

    View Slide

  22.  
          
          
          
       

    View Slide

  23.  
          
          
          
       

    View Slide

  24.        
           
           
      
    0.5235?
    0.6852?
    0.9855?

    View Slide

  25.        
    0.614 0.638 0.652
    Feb 2 Feb 3 Feb 4
    When is the half-moon?

    View Slide

  26. midnight
    02/23 midnight
    02/24 midnight
    0.46 0.49 0.52


    View Slide

  27. Victory!!!

    View Slide

  28. witchy.co
    witchy.co/trig
    andre.arko.net
    twitter.com/sailorhg
    twitter.com/indirect

    View Slide