14.09.2015 Views

Matvec Users’ Guide

Matvec Users' Guide

Matvec Users' Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.2. WESTERN CALENDAR 43<br />

6.2 Western Calendar<br />

6.2.1 Leap year<br />

leapyear(year) is a macro friend function. It returns 1 if the argument year is a leap year, otherwise return<br />

0. For example,<br />

> # Is 1990 a leap year?<br />

> leapyear(1990)<br />

0<br />

> # Is 1996 a leap year?<br />

> leapyear(1996)<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!