Leap years and MATLAB Central

Loren Shure keeps a blog called The Art of MATLAB at the MathWorks community site (a.k.a. MATLAB Central). She’s been extra busy this week so I filled in with a guest piece for her called Calendars and Leap Years. As befits the venue, it’s a mixture of prose and the MATLAB language code that’s used to support the discussion.

Part of the piece is the answer to the puzzle: what happens if you don’t have a leap year? The ancient Egyptians didn’t, and it made some weird things happen.