02.10.2012 Views

Using the Windows Interface

Using the Windows Interface

Using the Windows Interface

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GAUSS User Guide<br />

x = seqa(1970,1,20);<br />

y = _isleap(x);<br />

delif(x,abs(y-1));<br />

1972.0000 /* Vector containing all leap years<br />

1976.0000 between 1970 - 1989 */<br />

1980.0000<br />

1984.0000<br />

1988.0000<br />

To calculate <strong>the</strong> days of a number of consecutive years:<br />

x = seqa(1983,1,3);<br />

y = _daypryr(x);<br />

sumc(y);<br />

1096.0000<br />

To add a portion of <strong>the</strong> following year:<br />

g = { 1986, 2, 23, 0 };<br />

dy = dayinyr(g);<br />

sumc(y)+dy;<br />

1150.0000<br />

For more information on any of <strong>the</strong>se functions see <strong>the</strong>ir respective pages in <strong>the</strong> command<br />

reference.<br />

25.2.1 Timed Iterations<br />

Iterations of a program can be timed with <strong>the</strong> use of <strong>the</strong> hsec function in <strong>the</strong> following manner.<br />

25-6

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

Saved successfully!

Ooh no, something went wrong!