18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

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.

<strong>SIMSCRIPT</strong> <strong>II.5</strong> <strong>Programming</strong> <strong>Language</strong><br />

Function<br />

Function<br />

Mnenonic Arguments Mode Description<br />

min.f e ,e ,...,e 1 2 n<br />

Real if any Returns the value of smallest e . e; real; if none,<br />

i<br />

integer<br />

minute.f e Integer Converts event time to the minute portion.<br />

e = cumulative event time, real<br />

mod.f e 1<br />

,e 2<br />

Real if either e i ; Computes a remainder as real; if none, integer<br />

real; if none, e = trunc.f (e 1<br />

/e 2<br />

)*e 2<br />

;<br />

integer e 2<br />

≠ 0.<br />

month.f e Integer Converts simulation time to month portion<br />

based on values given to origin.r.<br />

e = cumulative simulation time, real<br />

nday.f e Integer Converts event time to the day portion.<br />

e = cumulative event time, real<br />

normal.f e 1<br />

,e 2<br />

,e 3<br />

Real Returns a random sample from a normal distribution.<br />

e = mean, real<br />

1<br />

e = standard deviation, real<br />

2<br />

e 3<br />

= random number stream, integer<br />

out.f e Alpha Sets or returns the e th alphabetic character inthe<br />

current output buffer; e must yield an integer<br />

value; e > 0; both right and left-handed<br />

function.<br />

300

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

Saved successfully!

Ooh no, something went wrong!