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.

Appendix B. Functions and Routines<br />

Function<br />

Function<br />

Mnenonic Arguments Mode Description<br />

line.f e Integer Yields the line number currently being executed.<br />

e = process notice pointer<br />

log.e.f e Real Computes the natural logarithm of a real expression;<br />

e > 0.<br />

log.normal.f e 1<br />

,e 2<br />

,e 3<br />

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

e 1<br />

= mean, real<br />

e 2<br />

= standard deviation<br />

e 3<br />

= random number stream, integer<br />

log.10.f e Real Computes log of a real expression.<br />

lor.f e 1<br />

,e 2<br />

Integer Logical sum of e 1<br />

and e 2<br />

.<br />

lower.f s Text Converts letters in a text string to lower case.<br />

match.f s ,s ,e 1 2<br />

Integer Returns the location of a text substring with a<br />

text string or 0 if not found.<br />

s = source, text<br />

1<br />

s 2<br />

= pattern to be matched, text<br />

e = number of characters of source to be<br />

skipped, integer<br />

max.f e 1<br />

,e 2<br />

,...,e n<br />

Real if any e; Returns the value of the largest e i<br />

. real; if none, integer<br />

299

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

Saved successfully!

Ooh no, something went wrong!