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.

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

left routine DATA(L,K)<br />

define VALUE as a real variable<br />

enter with VALUE<br />

''DON'T CHANGE THE VALUE OF DATA(L,K)<br />

''IF SUBSCRIPTS ARE OUT OF BOUNDS<br />

if L less than 1<br />

or L greater than N<br />

or K less than 1<br />

or K greater than M<br />

print 1 line with L,K thus<br />

INVALID SUBSCRIPTS *** AND ***<br />

else<br />

move from VALUE''TO DATA(L,K)<br />

always<br />

return<br />

end<br />

_______________________________________________________________________________<br />

2. Monitored variables used for data transformation:<br />

Program 6-5.<br />

_______________________________________________________________________________<br />

preamble<br />

permanent entities<br />

every SERIES owns a GRAPH<br />

temporary entities<br />

every SAMPLE has an XVAL and a YVAL<br />

and belongs to a GRAPH<br />

define XVAL and YVAL as real variables<br />

monitored on the right<br />

define GRAPH as a set ranked by high YVAL,<br />

without M attribute,<br />

without FB,FA,FL and RS routines<br />

normally, mode is integer<br />

end<br />

286

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

Saved successfully!

Ooh no, something went wrong!