18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Function<br />

Function<br />

Mnenonic Arguments Mode Description<br />

binomial.f e 1<br />

,e 2<br />

,e 3<br />

Integer Returns a random sample from a binomial<br />

distribution.<br />

e 1<br />

= number of trials, integer<br />

e 2<br />

= probability of success, real<br />

e 3<br />

= random number stream, integer<br />

concat.f a,b... Text Concatenates any number of text strings<br />

to produce a single text string.<br />

cos.f e Real Computes the cosine of a real expression given<br />

in radians.<br />

date.f e ,e ,e 1 2 3<br />

Real Converts a calendar date to cumulative simulation<br />

time, based on values given to<br />

origin.r.<br />

e 1<br />

= month, integer<br />

e 2<br />

= day, integer<br />

e 3<br />

= year, integer<br />

day.f e Integer Converts simulation time to the day portionbased<br />

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

e = cumulative simulation time, real<br />

dim.f v(*) Integer Returns the number of elements pointed to by<br />

the pointer variable v, in the dimension of the<br />

array v.<br />

296

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

Saved successfully!

Ooh no, something went wrong!