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.

Appendix B.<br />

Functions and Routines<br />

B.1 Functions<br />

Function<br />

Function<br />

Mnenonic Arguments Mode Description<br />

abs.f e Mode of e Returns the absolute value of the expression.<br />

and.f e 1<br />

,e 2<br />

Integer Logical product of e 1<br />

and e 2<br />

.<br />

arccos.f e Real Computes the arc cosine of a real expression;<br />

-1 > e > 1.<br />

arcsin.f e Real Computes the arc sine of a real expression,<br />

-1 > e > 1.<br />

arctan.f e ,e 1 2<br />

Real Computes the arc tangent of e /e ; (e ,e ) ≠<br />

1 2 1 2<br />

(0,0).<br />

atot.f e Text Converts an alpha expression to a text value.<br />

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

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

e 1<br />

= power of x, real<br />

e 2<br />

= power of (1-x), real; e 1<br />

> 0<br />

e 3<br />

= random number stream, integer<br />

295

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

Saved successfully!

Ooh no, something went wrong!