<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://seles.info/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=128.100.72.168</id>
	<title>SELESwiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://seles.info/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=128.100.72.168"/>
	<link rel="alternate" type="text/html" href="https://seles.info/index.php/Special:Contributions/128.100.72.168"/>
	<updated>2026-05-30T05:36:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://seles.info/index.php?title=SELES101l02&amp;diff=2577</id>
		<title>SELES101l02</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=SELES101l02&amp;diff=2577"/>
		<updated>2006-10-25T18:25:30Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;STEPS:&lt;br /&gt;
&lt;br /&gt;
-&amp;gt;Click on the Seles program, a window will open up as shown below&lt;br /&gt;
&lt;br /&gt;
[[Image:Seles1.gif]]&lt;br /&gt;
&lt;br /&gt;
-&amp;gt;Click on &amp;quot;New&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:Seles2.gif]]&lt;br /&gt;
&lt;br /&gt;
-&amp;gt;A black window will open up within the Seles window&lt;br /&gt;
&lt;br /&gt;
[[Image:Seles3.gif]]&lt;br /&gt;
&lt;br /&gt;
-&amp;gt;Go to &amp;quot;StaticModels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:Seles4.gif]]&lt;br /&gt;
&lt;br /&gt;
-&amp;gt;Select &amp;quot;Value Model&amp;quot; under &amp;quot;StaticModels&amp;quot;, a window will pop up as below&lt;br /&gt;
&lt;br /&gt;
[[Image:Seles5.gif]]&lt;br /&gt;
&lt;br /&gt;
-&amp;gt;Make sure to select &amp;quot;Single Evaluation&amp;quot; to run value models that evaluate to a single value&lt;br /&gt;
&lt;br /&gt;
[[Image:Seles6.gif]]&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference&amp;diff=2322</id>
		<title>Language Reference</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference&amp;diff=2322"/>
		<updated>2006-10-10T17:26:03Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:&#039;&#039;Click on a term below for more information.&#039;&#039;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
{| style=&amp;quot;background-color: transparent; width: {{{width|100%}}}&amp;quot;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
| width=&amp;quot;20%&amp;quot; align=&amp;quot;{{{align|left}}}&amp;quot; valign=&amp;quot;{{{valign|top}}}&amp;quot; |&lt;br /&gt;
*SYMBOLS&lt;br /&gt;
**[[Language Reference 1# + | + ]]&lt;br /&gt;
**[[Language Reference 1#-|-]]&lt;br /&gt;
**[[Language Reference 1#*|*]]&lt;br /&gt;
**[[Language Reference 1#/|/]]&lt;br /&gt;
**[[Language Reference 1#^|^]]&lt;br /&gt;
**[[Language Reference 1#ABS(Expr)|ABS(Expr)]]&lt;br /&gt;
**[[Language Reference 1#CEILING(Expr)|CEILING(Expr)]]&lt;br /&gt;
**[[Language Reference 1#EXP(Expr)|EXP(Expr)]]&lt;br /&gt;
**[[Language Reference 1#FLOOR(Expr)|FLOOR(Expr)]]&lt;br /&gt;
**[[Language Reference 1#LOG(Expr)|LOG(Expr)]]&lt;br /&gt;
**[[Language Reference 1#ROUND(Expr)|ROUND(Expr)]]&lt;br /&gt;
* A|Aa&lt;br /&gt;
**[[Language Reference 1#ABS|ABS]]&lt;br /&gt;
**[[Language Reference 1#ABSOLUTE|ABSOLUTE]]&lt;br /&gt;
**[[Language Reference 1#AND|AND]]&lt;br /&gt;
**[[Language Reference 1#ARCSIN|ARCSIN]]&lt;br /&gt;
**[[Language Reference 1#ARCTAN|ARCTAN]] &lt;br /&gt;
**[[Language Reference 1#ARCTAN|ARCTAN]]&lt;br /&gt;
* B|Bb&lt;br /&gt;
**[[Language Reference 1#BITWISE AND|BITWISE AND]]&lt;br /&gt;
**[[Language Reference 1#BITWISE NOT|BITWISE NOT]]&lt;br /&gt;
**[[Language Reference 1#BITWISE OR|BITWISE OR]]&lt;br /&gt;
**[[Language Reference 1#BITWISE XOR|BITWISE XOR]] &lt;br /&gt;
* C|Cc&lt;br /&gt;
**[[Language Reference 1#CEILING|CEILING]]&lt;br /&gt;
**[[Language Reference 1#CLAMP|CLAMP]]&lt;br /&gt;
**[[Language Reference 1#CLASSIFIED_DIST|CLASSIFIED_DIST]]&lt;br /&gt;
**[[Language Reference 1#CLASSIFIED_DIST_M|CLASSIFIED_DIST_M]]&lt;br /&gt;
**[[Language Reference 1#CLASSIFY|CLASSIFY]]&lt;br /&gt;
**[[Language Reference 1#CONTAINS|CONTAINS]]&lt;br /&gt;
**[[Language Reference 1#CONTAINS LINK|CONTAINS LINK]]&lt;br /&gt;
**[[Language Reference 1#COS|COS]]&lt;br /&gt;
**[[Language Reference 1#CRITICAL SECTION|CRITICAL SECTION]]&lt;br /&gt;
* D|Dd&lt;br /&gt;
**[[Language Reference 1#DEBUG|DEBUG]] &lt;br /&gt;
**[[Language Reference 1#DECISION|DECISION]]&lt;br /&gt;
**[[Language Reference 1#DIRECTION|DIRECTION]]&lt;br /&gt;
**[[Language Reference 1#DISTANCE|DISTANCE]]&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
| width=&amp;quot;20%&amp;quot; align=&amp;quot;{{{align|left}}}&amp;quot; valign=&amp;quot;{{{valign|top}}}&amp;quot; |&lt;br /&gt;
* E|Ee&lt;br /&gt;
**[[Language Reference 1#ELSE|ELSE]]&lt;br /&gt;
**[[Language Reference 1#EQUAL TRUE|EQUAL TRUE]] &lt;br /&gt;
**[[Language Reference 1#EXP(Expr)|EXP(Expr)]]&lt;br /&gt;
**[[Language Reference 1#Expr % Expr|Expr % Expr]]&lt;br /&gt;
* F|Ff&lt;br /&gt;
**[[Language Reference 1#FIND|FIND]]&lt;br /&gt;
**[[Language Reference 1#FIND LINK|FIND LINK]]&lt;br /&gt;
**[[Language Reference 1#FIND NEXT|FIND NEXT]] &lt;br /&gt;
**[[Language Reference 1#FIND NEXT LINK|FIND NEXT LINK]]&lt;br /&gt;
**[[Language Reference 1#FIRST|FIRST]]&lt;br /&gt;
**[[Language Reference 1#FIRST LINK|FIRST LINK]]&lt;br /&gt;
**[[Language Reference 1#FLOOR|FLOOR]]&lt;br /&gt;
* G|Gg&lt;br /&gt;
**[[Language Reference 1#GEOMETRIC MEAN|GEOMETRIC MEAN]] &lt;br /&gt;
**[[Language Reference 1#GREATER OR EQUAL|GREATER OR EQUAL]]&lt;br /&gt;
**[[Language Reference 1#GREATER THAN|GREATER THAN]]&lt;br /&gt;
* H|Hh&lt;br /&gt;
**[[Language Reference 1#HEAD|HEAD]]&lt;br /&gt;
* I|Ii&lt;br /&gt;
**[[Language Reference 2#IF Expr|IF Expr]]&lt;br /&gt;
**[[Language Reference 2#IF Expr THEN Expr ELSE|IF Expr THEN Expr ELSE]] &lt;br /&gt;
**[[Language Reference 2#INSERT|INSERT]]&lt;br /&gt;
**[[Language Reference 2#INSERT HEAD|INSERT HEAD]]&lt;br /&gt;
**[[Language Reference 2#INSERT TAIL|INSERT TAIL]]&lt;br /&gt;
**[[Language Reference 2#INTERPOLATE|INTERPOLATE]]&lt;br /&gt;
**[[Language Reference 2#INTERPOLATE|INTERPOLATE]] &lt;br /&gt;
**[[Language Reference 2#IS EMPTY|IS EMPTY]]&lt;br /&gt;
**[[Language Reference 2#IS EMPTY LINKS|IS EMPTY LINKS]]&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
| width=&amp;quot;20%&amp;quot; align=&amp;quot;{{{align|left}}}&amp;quot; valign=&amp;quot;{{{valign|top}}}&amp;quot; |&lt;br /&gt;
* J|Jj&lt;br /&gt;
* K|Kk&lt;br /&gt;
* L|Ll&lt;br /&gt;
**[[Language Reference 2#LESS OR EQUAL|LESS OR EQUAL]]&lt;br /&gt;
**[[Language Reference 2#LESS THAN|LESS THAN]]&lt;br /&gt;
**[[Language Reference 2#LINKED|LINKED]] &lt;br /&gt;
**[[Language Reference 2#LOG|LOG]]&lt;br /&gt;
**[[Language Reference 2#LOG NORMAL CDF|LOG NORMAL CDF]]&lt;br /&gt;
**[[Language Reference 2#LOG NORMAL PDF|LOG NORMAL PDF]]&lt;br /&gt;
**[[Language Reference 2#LOG NORMAL TEMPORAL PDF|LOG NORMAL TEMPORAL PDF]]&lt;br /&gt;
**[[Language Reference 2#LOOKUP|LOOKUP]]&lt;br /&gt;
* M|Mm&lt;br /&gt;
**[[Language Reference 2#MAX|MAX]]&lt;br /&gt;
**[[Language Reference 2#MAX POSITION|MAX POSITION]]&lt;br /&gt;
**[[Language Reference 2#MEAN|MEAN]]&lt;br /&gt;
**[[Language Reference 2#MIN|MIN]]&lt;br /&gt;
**[[Language Reference 2#MIN POSITION|MIN POSITION]]&lt;br /&gt;
* N|Nn&lt;br /&gt;
**[[Language Reference 2#NEGEXP|NEGEXP]]&lt;br /&gt;
**[[Language Reference 2#NEXT|NEXT]]&lt;br /&gt;
**[[Language Reference 2#NEXT LINK|NEXT LINK]]&lt;br /&gt;
**[[Language Reference 2#NORMAL CDF|NORMAL CDF]]&lt;br /&gt;
**[[Language Reference 2#NORMAL PDF|NORMAL PDF]] &lt;br /&gt;
**[[Language Reference 2#NORMAL TEMPORAL PDF|NORMAL TEMPORAL PDF]]&lt;br /&gt;
**[[Language Reference 2#NOT EQUAL|NOT EQUAL]]&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
| width=&amp;quot;20%&amp;quot; align=&amp;quot;{{{align|left}}}&amp;quot; valign=&amp;quot;{{{valign|top}}}&amp;quot; |&lt;br /&gt;
* O|Oo&lt;br /&gt;
**[[Language Reference 3#ONE|ONE]]&lt;br /&gt;
**[[Language Reference 3#OR|OR]]&lt;br /&gt;
**[[Language Reference 3#OVER INDEX SEQUENCE|OVER INDEX SEQUENCE]] &lt;br /&gt;
* P|Pp&lt;br /&gt;
**[[Language Reference 3#PAUSE|PAUSE]]&lt;br /&gt;
**[[Language Reference 3#PAUSE (#Value)IF|PAUSE (#Value)IF]]&lt;br /&gt;
**[[Language Reference 3#PAUSE IF|PAUSE IF]]&lt;br /&gt;
**[[Language Reference 3#PREV|PREV]]&lt;br /&gt;
**[[Language Reference 3#PREV LINK|PREV LINK]] &lt;br /&gt;
* Q|Qq&lt;br /&gt;
* R|Rr&lt;br /&gt;
**[[Language Reference 3#RECOMPUTE|RECOMPUTE]]&lt;br /&gt;
**[[Language Reference 3#REGION CENTRED|REGION CENTRED]]&lt;br /&gt;
**[[Language Reference 3#REGION COST SURFACE|REGION COST SURFACE]]&lt;br /&gt;
**[[Language Reference 3#REGION LEAST COST PATH|REGION LEAST COST PATH]]&lt;br /&gt;
**[[Language Reference 3#REGION LOCATION|REGION LOCATION]] &lt;br /&gt;
**[[Language Reference 3#REGION LOCATION LIST|REGION LOCATION LIST]]&lt;br /&gt;
**[[Language Reference 3#REGION RECT|REGION RECT]]&lt;br /&gt;
**[[Language Reference 3#REGION WHOLE MAP|REGION WHOLE MAP]]&lt;br /&gt;
**[[Language Reference 3#REMOVE|REMOVE]]&lt;br /&gt;
**[[Language Reference 3#REMOVE ALL LINKS|REMOVE ALL LINKS]] &lt;br /&gt;
**[[Language Reference 3#REMOVE LINK|REMOVE LINK]]&lt;br /&gt;
**[[Language Reference 3#RESIZE|RESIZE]]&lt;br /&gt;
**[[Language Reference 3#RESPONSE|RESPONSE]]&lt;br /&gt;
**[[Language Reference 3#ROUND|ROUND]]&lt;br /&gt;
* S|Ss&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
| width=&amp;quot;20%&amp;quot; align=&amp;quot;{{{align|left}}}&amp;quot; valign=&amp;quot;{{{valign|top}}}&amp;quot; |&lt;br /&gt;
**[[Language Reference 3#SEED()|SEED()]]&lt;br /&gt;
**[[Language Reference 3#SELECTAT|SELECTAT]]&lt;br /&gt;
**[[Language Reference 3#SET|SET]]&lt;br /&gt;
**[[Language Reference 3#SET LINK|SET LINK]]&lt;br /&gt;
**[[Language Reference 3#SETAT|SETAT]] &lt;br /&gt;
**[[Language Reference 3#SHIFT LEFT|SHIFT LEFT]]&lt;br /&gt;
**[[Language Reference 3#SHIFT RIGHT|SHIFT RIGHT]]&lt;br /&gt;
**[[Language Reference 3#SIN|SIN]]&lt;br /&gt;
**[[Language Reference 3#SIZE LINKS|SIZE LINKS]]&lt;br /&gt;
**[[Language Reference 3#SKEWED NORMAL CDF|SKEWED NORMAL CDF]] &lt;br /&gt;
**[[Language Reference 3#SKEWED NORMAL PDF|SKEWED NORMAL PDF]]&lt;br /&gt;
**[[Language Reference 3#SKEWED NORMAL TEMPORAL PDF|SKEWED NORMAL TEMPORAL PDF]]&lt;br /&gt;
**[[Language Reference 3#SORT|SORT]]&lt;br /&gt;
**[[Language Reference 3#SORT LINKS|SORT LINKS]]&lt;br /&gt;
**[[Language Reference 3#STRICT ORDERED|STRICT ORDERED]] &lt;br /&gt;
**[[Language Reference 3#SUM|SUM]]&lt;br /&gt;
* T|Tt&lt;br /&gt;
**[[Language Reference 3#TAIL|TAIL]]&lt;br /&gt;
**[[Language Reference 3#TAN|TAN]]&lt;br /&gt;
* U|Uu&lt;br /&gt;
**[[Language Reference 3#UNIFORM|UNIFORM]]&lt;br /&gt;
**[[Language Reference 3#UNIFORM TEMPORAL PDF|UNIFORM TEMPORAL PDF]] &lt;br /&gt;
* V|Vv&lt;br /&gt;
* W|Ww&lt;br /&gt;
**[[Language Reference 3#WAIT UNTIL|WAIT UNTIL]]&lt;br /&gt;
**[[Language Reference 3#WHILE|WHILE]]&lt;br /&gt;
* X|Xx&lt;br /&gt;
* Y|Yy&lt;br /&gt;
* Z|Zz&lt;br /&gt;
**[[Language Reference 3#ZERO|ZERO]] &lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference_1&amp;diff=2320</id>
		<title>Language Reference 1</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference_1&amp;diff=2320"/>
		<updated>2006-10-10T17:24:18Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==+==&lt;br /&gt;
DESCRIPTION:&lt;br /&gt;
The addition operator &lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr+Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the expression is the sum of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=1+2&lt;br /&gt;
    =3&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==-==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The subtraction operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr-Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression minus the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=15-2&lt;br /&gt;
    =13&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==*==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The multiplication operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr*Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value is the product of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=5*4&lt;br /&gt;
    =20&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==/==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The division operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr/Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression divided by value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=60/6&lt;br /&gt;
    =10&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==^==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The power operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr^Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
The first expression to the power of the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=7^3&lt;br /&gt;
    =343&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ABS==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ABSOLUTE==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
==ABS(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The absolute value operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ABS(Expr)=|Expr|=Absolute(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Absolute value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ABS(-9)=|-9|=Absolute(-9)&lt;br /&gt;
    =9&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AND==		&lt;br /&gt;
TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==ARCCOS==(Expr)	inverse cos of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCSIN==&lt;br /&gt;
(Expr)	inverse sine of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr)	inverse  tan of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==BITWISE OR==&lt;br /&gt;
(Expr, Expr)	Bitwise OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE AND==&lt;br /&gt;
(Expr, Expr)	Bitwise AND of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE XOR==&lt;br /&gt;
(Expr, Expr)	Bitwise exclusive-OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE NOT==&lt;br /&gt;
 Expr	Bitwise NOT of a value[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
&lt;br /&gt;
==CEILING(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The ceiling operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=CEILING(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=CEILING(0.01)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CEILING==&lt;br /&gt;
(Expr)	smallest integer larger than the expression value[[Model Builder&#039;s Guide Chapter 9#Ceiling]]&lt;br /&gt;
&lt;br /&gt;
==CLAMP==&lt;br /&gt;
(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
==CLASSIFIED_DIST==	&lt;br /&gt;
in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST[M]==&lt;br /&gt;
In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
==COS==&lt;br /&gt;
(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta) [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CRITICAL SECTION==&lt;br /&gt;
(Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DEBUG==&lt;br /&gt;
		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION==&lt;br /&gt;
Expr	approximation of line between end cells&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	known location indices. If there is a decision expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr	location indices stored in one-dimensional X. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DIRECTION==&lt;br /&gt;
(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==DISPLAY==		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
==DISPLAY==		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
==DISTANCE==&lt;br /&gt;
(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==ELSE==&lt;br /&gt;
        expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==EQUAL	TRUE== &lt;br /&gt;
(1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==Expr % Expr==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The percentage operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
       x=Expr % Expr &lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression modulo the value of the second expression(assumes that the values of the expression are integers&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=19 % 12&lt;br /&gt;
            =7&lt;br /&gt;
&lt;br /&gt;
Example 2:&lt;br /&gt;
           x=10 % 20&lt;br /&gt;
            =10&lt;br /&gt;
&lt;br /&gt;
Example 3:&lt;br /&gt;
           x=10 % 10&lt;br /&gt;
            =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==EXP(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
(Expr) base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=EXP(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Base of the natural logarithm (e) to the power of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=EXP(3)&lt;br /&gt;
            =20.08553692&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
==FLOOR(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The flooring operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=FLOOR(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Largest integer smaller than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=FLOOR(0.99)&lt;br /&gt;
    =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
==GEOMETRIC MEAN==	&lt;br /&gt;
geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER OR EQUAL==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER THAN==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==LOG(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The logarithm operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=LOG(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Natural logarithm of the value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=LOG(0.773)&lt;br /&gt;
    =-0.111820506&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ROUND(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The rounding operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ROUND(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Expression value rounded to the nearest integer&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ROUND(0.773)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference_1&amp;diff=2317</id>
		<title>Language Reference 1</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference_1&amp;diff=2317"/>
		<updated>2006-10-10T17:22:26Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==+==&lt;br /&gt;
DESCRIPTION:&lt;br /&gt;
The addition operator &lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr+Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the expression is the sum of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=1+2&lt;br /&gt;
    =3&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==-==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The subtraction operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr-Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression minus the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=15-2&lt;br /&gt;
    =13&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==*==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The multiplication operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr*Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value is the product of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=5*4&lt;br /&gt;
    =20&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==/==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The division operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr/Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression divided by value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=60/6&lt;br /&gt;
    =10&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==^==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The power operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr^Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
The first expression to the power of the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=7^3&lt;br /&gt;
    =343&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ABS==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ABSOLUTE==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
==ABS(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The absolute value operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ABS(Expr)=|Expr|=Absolute(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Absolute value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ABS(-9)=|-9|=Absolute(-9)&lt;br /&gt;
    =9&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AND==		&lt;br /&gt;
TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==ARCCOS==(Expr)	inverse cos of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCSIN==&lt;br /&gt;
(Expr)	inverse sine of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr)	inverse  tan of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==BITWISE OR==&lt;br /&gt;
(Expr, Expr)	Bitwise OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE AND==&lt;br /&gt;
(Expr, Expr)	Bitwise AND of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE XOR==&lt;br /&gt;
(Expr, Expr)	Bitwise exclusive-OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE NOT==&lt;br /&gt;
 Expr	Bitwise NOT of a value[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
&lt;br /&gt;
==CEILING(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The ceiling operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=CEILING(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=CEILING(0.01)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CEILING==&lt;br /&gt;
(Expr)	smallest integer larger than the expression value[[Model Builder&#039;s Guide Chapter 9#Ceiling]]&lt;br /&gt;
&lt;br /&gt;
==CLAMP==&lt;br /&gt;
(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
==CLASSIFIED_DIST==	&lt;br /&gt;
in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST[M]==&lt;br /&gt;
In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
==COS==&lt;br /&gt;
(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta) [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CRITICAL SECTION==&lt;br /&gt;
(Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DEBUG==&lt;br /&gt;
		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION==&lt;br /&gt;
Expr	approximation of line between end cells&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	known location indices. If there is a decision expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr	location indices stored in one-dimensional X. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DIRECTION==&lt;br /&gt;
(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==DISPLAY==		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
==DISPLAY==		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
==DISTANCE==&lt;br /&gt;
(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==ELSE==&lt;br /&gt;
        expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==EQUAL	TRUE== &lt;br /&gt;
(1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==FLOOR(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The flooring operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=FLOOR(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Largest integer smaller than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=FLOOR(0.99)&lt;br /&gt;
    =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
==GEOMETRIC MEAN==	&lt;br /&gt;
geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER OR EQUAL==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER THAN==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Expr % Expr==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The percentage operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
       x=Expr % Expr &lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression modulo the value of the second expression(assumes that the values of the expression are integers&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=19 % 12&lt;br /&gt;
            =7&lt;br /&gt;
&lt;br /&gt;
Example 2:&lt;br /&gt;
           x=10 % 20&lt;br /&gt;
            =10&lt;br /&gt;
&lt;br /&gt;
Example 3:&lt;br /&gt;
           x=10 % 10&lt;br /&gt;
            =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==EXP(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
(Expr) base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=EXP(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Base of the natural logarithm (e) to the power of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=EXP(3)&lt;br /&gt;
            =20.08553692&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==LOG(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The logarithm operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=LOG(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Natural logarithm of the value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=LOG(0.773)&lt;br /&gt;
    =-0.111820506&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ROUND(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The rounding operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ROUND(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Expression value rounded to the nearest integer&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ROUND(0.773)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference_1&amp;diff=2315</id>
		<title>Language Reference 1</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference_1&amp;diff=2315"/>
		<updated>2006-10-10T17:20:42Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==+==&lt;br /&gt;
DESCRIPTION:&lt;br /&gt;
The addition operator &lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr+Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the expression is the sum of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=1+2&lt;br /&gt;
    =3&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==-==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The subtraction operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr-Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression minus the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=15-2&lt;br /&gt;
    =13&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==*==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The multiplication operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr*Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value is the product of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=5*4&lt;br /&gt;
    =20&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==/==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The division operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr/Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression divided by value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=60/6&lt;br /&gt;
    =10&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==^==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The power operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr^Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
The first expression to the power of the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=7^3&lt;br /&gt;
    =343&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ABS==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ABSOLUTE==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
==ABS(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The absolute value operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ABS(Expr)=|Expr|=Absolute(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Absolute value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ABS(-9)=|-9|=Absolute(-9)&lt;br /&gt;
    =9&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AND==		&lt;br /&gt;
TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==ARCCOS==(Expr)	inverse cos of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCSIN==&lt;br /&gt;
(Expr)	inverse sine of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr)	inverse  tan of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==BITWISE OR==&lt;br /&gt;
(Expr, Expr)	Bitwise OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE AND==&lt;br /&gt;
(Expr, Expr)	Bitwise AND of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE XOR==&lt;br /&gt;
(Expr, Expr)	Bitwise exclusive-OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE NOT==&lt;br /&gt;
 Expr	Bitwise NOT of a value[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
&lt;br /&gt;
==CEILING(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The ceiling operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=CEILING(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=CEILING(0.01)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CEILING==&lt;br /&gt;
(Expr)	smallest integer larger than the expression value[[Model Builder&#039;s Guide Chapter 9#Ceiling]]&lt;br /&gt;
&lt;br /&gt;
==CLAMP==&lt;br /&gt;
(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
==CLASSIFIED_DIST==	&lt;br /&gt;
in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST[M]==&lt;br /&gt;
In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
==COS==&lt;br /&gt;
(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta) [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CRITICAL SECTION==&lt;br /&gt;
(Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DEBUG==&lt;br /&gt;
		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION==&lt;br /&gt;
Expr	approximation of line between end cells&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	known location indices. If there is a decision expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr	location indices stored in one-dimensional X. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DIRECTION==&lt;br /&gt;
(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==DISPLAY==		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
==DISPLAY==		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
==DISTANCE==&lt;br /&gt;
(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==ELSE==&lt;br /&gt;
        expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==EQUAL	TRUE== &lt;br /&gt;
(1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==FLOOR==&lt;br /&gt;
(Expr)		largest integer smaller than the expression value[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==GEOMETRIC MEAN==	&lt;br /&gt;
geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER OR EQUAL==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER THAN==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Expr % Expr==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The percentage operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
       x=Expr % Expr &lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression modulo the value of the second expression(assumes that the values of the expression are integers&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=19 % 12&lt;br /&gt;
            =7&lt;br /&gt;
&lt;br /&gt;
Example 2:&lt;br /&gt;
           x=10 % 20&lt;br /&gt;
            =10&lt;br /&gt;
&lt;br /&gt;
Example 3:&lt;br /&gt;
           x=10 % 10&lt;br /&gt;
            =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==EXP(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
(Expr) base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=EXP(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Base of the natural logarithm (e) to the power of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=EXP(3)&lt;br /&gt;
            =20.08553692&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
==FLOOR(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The flooring operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=FLOOR(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Largest integer smaller than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=FLOOR(0.99)&lt;br /&gt;
    =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==LOG(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The logarithm operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=LOG(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Natural logarithm of the value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=LOG(0.773)&lt;br /&gt;
    =-0.111820506&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ROUND(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The rounding operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ROUND(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Expression value rounded to the nearest integer&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ROUND(0.773)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference_1&amp;diff=2314</id>
		<title>Language Reference 1</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference_1&amp;diff=2314"/>
		<updated>2006-10-10T17:19:17Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==+==&lt;br /&gt;
DESCRIPTION:&lt;br /&gt;
The addition operator &lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr+Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the expression is the sum of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=1+2&lt;br /&gt;
    =3&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==-==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The subtraction operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr-Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression minus the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=15-2&lt;br /&gt;
    =13&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==*==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The multiplication operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr*Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value is the product of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=5*4&lt;br /&gt;
    =20&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==/==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The division operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr/Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression divided by value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=60/6&lt;br /&gt;
    =10&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==^==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The power operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr^Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
The first expression to the power of the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=7^3&lt;br /&gt;
    =343&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ABS==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ABSOLUTE==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
==ABS(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The absolute value operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ABS(Expr)=|Expr|=Absolute(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Absolute value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ABS(-9)=|-9|=Absolute(-9)&lt;br /&gt;
    =9&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AND==		&lt;br /&gt;
TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==ARCCOS==(Expr)	inverse cos of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCSIN==&lt;br /&gt;
(Expr)	inverse sine of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr)	inverse  tan of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==BITWISE OR==&lt;br /&gt;
(Expr, Expr)	Bitwise OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE AND==&lt;br /&gt;
(Expr, Expr)	Bitwise AND of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE XOR==&lt;br /&gt;
(Expr, Expr)	Bitwise exclusive-OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE NOT==&lt;br /&gt;
 Expr	Bitwise NOT of a value[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
&lt;br /&gt;
==CEILING(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The ceiling operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=CEILING(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=CEILING(0.01)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CEILING==&lt;br /&gt;
(Expr)	smallest integer larger than the expression value[[Model Builder&#039;s Guide Chapter 9#Ceiling]]&lt;br /&gt;
&lt;br /&gt;
==CLAMP==&lt;br /&gt;
(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
==CLASSIFIED_DIST==	&lt;br /&gt;
in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST[M]==&lt;br /&gt;
In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
==COS==&lt;br /&gt;
(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta) [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CRITICAL SECTION==&lt;br /&gt;
(Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DEBUG==&lt;br /&gt;
		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION==&lt;br /&gt;
Expr	approximation of line between end cells&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	known location indices. If there is a decision expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr	location indices stored in one-dimensional X. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DIRECTION==&lt;br /&gt;
(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==DISPLAY==		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
==DISPLAY==		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
==DISTANCE==&lt;br /&gt;
(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==ELSE==&lt;br /&gt;
        expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==EQUAL	TRUE== &lt;br /&gt;
(1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==FLOOR==&lt;br /&gt;
(Expr)		largest integer smaller than the expression value[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==GEOMETRIC MEAN==	&lt;br /&gt;
geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER OR EQUAL==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER THAN==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Expr % Expr==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The percentage operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
       x=Expr % Expr &lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression modulo the value of the second expression(assumes that the values of the expression are integers&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=19 % 12&lt;br /&gt;
            =7&lt;br /&gt;
&lt;br /&gt;
Example 2:&lt;br /&gt;
           x=10 % 20&lt;br /&gt;
            =10&lt;br /&gt;
&lt;br /&gt;
Example 3:&lt;br /&gt;
           x=10 % 10&lt;br /&gt;
            =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==EXP(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
(Expr) base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=EXP(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Base of the natural logarithm (e) to the power of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=EXP(3)&lt;br /&gt;
            =20.08553692&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
==FLOOR(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The flooring operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=FLOOR(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Largest integer smaller than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=FLOOR(0.99)&lt;br /&gt;
    =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==LOG(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The logarithm operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=LOG(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Natural logarithm of the value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=LOG(0.773)&lt;br /&gt;
    =-0.111820506&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ROUND(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The rounding operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ROUND(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Expression value rounded to the nearest integer&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ROUND(0.773)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CEILING==&lt;br /&gt;
(Expr)	smallest integer larger than the expression value[[Model Builder&#039;s Guide Chapter 9#Ceiling]]&lt;br /&gt;
&lt;br /&gt;
==CLAMP==&lt;br /&gt;
(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
==CLASSIFIED_DIST==	&lt;br /&gt;
in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST[M]==&lt;br /&gt;
In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
==COS==&lt;br /&gt;
(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta) [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CRITICAL SECTION==&lt;br /&gt;
(Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DEBUG==&lt;br /&gt;
		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION==&lt;br /&gt;
Expr	approximation of line between end cells&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	known location indices. If there is a decision expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr	location indices stored in one-dimensional X. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DIRECTION==&lt;br /&gt;
(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==DISPLAY==		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
==DISPLAY==		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
==DISTANCE==&lt;br /&gt;
(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==ELSE==&lt;br /&gt;
        expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==EQUAL	TRUE== &lt;br /&gt;
(1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==FLOOR==&lt;br /&gt;
(Expr)		largest integer smaller than the expression value[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==GEOMETRIC MEAN==	&lt;br /&gt;
geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER OR EQUAL==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER THAN==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference_1&amp;diff=2307</id>
		<title>Language Reference 1</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference_1&amp;diff=2307"/>
		<updated>2006-10-10T17:13:59Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==+==&lt;br /&gt;
DESCRIPTION:&lt;br /&gt;
The addition operator &lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr+Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the expression is the sum of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=1+2&lt;br /&gt;
    =3&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==-==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The subtraction operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr-Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression minus the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=15-2&lt;br /&gt;
    =13&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==*==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The multiplication operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr*Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value is the product of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=5*4&lt;br /&gt;
    =20&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==/==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The division operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr/Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression divided by value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=60/6&lt;br /&gt;
    =10&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==^==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The power operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr^Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
The first expression to the power of the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=7^3&lt;br /&gt;
    =343&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ABS==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ABSOLUTE==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
==ABS(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The absolute value operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ABS(Expr)=|Expr|=Absolute(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Absolute value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ABS(-9)=|-9|=Absolute(-9)&lt;br /&gt;
    =9&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AND==		&lt;br /&gt;
TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==ARCCOS==(Expr)	inverse cos of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCSIN==&lt;br /&gt;
(Expr)	inverse sine of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr)	inverse  tan of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==BITWISE OR==&lt;br /&gt;
(Expr, Expr)	Bitwise OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE AND==&lt;br /&gt;
(Expr, Expr)	Bitwise AND of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE XOR==&lt;br /&gt;
(Expr, Expr)	Bitwise exclusive-OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE NOT==&lt;br /&gt;
 Expr	Bitwise NOT of a value[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Expr % Expr==&lt;br /&gt;
	value of the first expression modulo the value of&lt;br /&gt;
	the second expression (assumes that the values&lt;br /&gt;
	of the expressions are integers)&lt;br /&gt;
&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The percentage operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
       x=Expr % Expr &lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression modulo the value of the second expression(assumes that the values of the expression are integers&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=19 % 12&lt;br /&gt;
            =7&lt;br /&gt;
&lt;br /&gt;
Example 2:&lt;br /&gt;
           x=10 % 20&lt;br /&gt;
            =10&lt;br /&gt;
&lt;br /&gt;
Example 3:&lt;br /&gt;
           x=10 % 10&lt;br /&gt;
            =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==EXP(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
(Expr) base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=EXP(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Base of the natural logarithm (e) to the power of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=EXP(3)&lt;br /&gt;
            =20.08553692&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
==LOG(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The logarithm operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=LOG(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Natural logarithm of the value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=LOG(0.773)&lt;br /&gt;
    =-0.111820506&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ROUND(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The rounding operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ROUND(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Expression value rounded to the nearest integer&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ROUND(0.773)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==FLOOR(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The flooring operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=FLOOR(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Largest integer smaller than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=FLOOR(0.99)&lt;br /&gt;
    =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CEILING(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The ceiling operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=CEILING(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=CEILING(0.01)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CEILING==&lt;br /&gt;
(Expr)	smallest integer larger than the expression value[[Model Builder&#039;s Guide Chapter 9#Ceiling]]&lt;br /&gt;
&lt;br /&gt;
==CLAMP==&lt;br /&gt;
(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
==CLASSIFIED_DIST==	&lt;br /&gt;
in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST[M]==&lt;br /&gt;
In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
==COS==&lt;br /&gt;
(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta) [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CRITICAL SECTION==&lt;br /&gt;
(Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DEBUG==&lt;br /&gt;
		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION==&lt;br /&gt;
Expr	approximation of line between end cells&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	known location indices. If there is a decision expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr	location indices stored in one-dimensional X. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DIRECTION==&lt;br /&gt;
(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==DISPLAY==		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
==DISPLAY==		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
==DISTANCE==&lt;br /&gt;
(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==ELSE==&lt;br /&gt;
        expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==EQUAL	TRUE== &lt;br /&gt;
(1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==FLOOR==&lt;br /&gt;
(Expr)		largest integer smaller than the expression value[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==GEOMETRIC MEAN==	&lt;br /&gt;
geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER OR EQUAL==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER THAN==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference_1&amp;diff=2305</id>
		<title>Language Reference 1</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference_1&amp;diff=2305"/>
		<updated>2006-10-10T17:12:45Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==+==&lt;br /&gt;
DESCRIPTION:&lt;br /&gt;
The addition operator &lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr+Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the expression is the sum of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=1+2&lt;br /&gt;
    =3&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==-==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The subtraction operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr-Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression minus the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=15-2&lt;br /&gt;
    =13&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==*==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The multiplication operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr*Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value is the product of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=5*4&lt;br /&gt;
    =20&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==/==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The division operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr/Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression divided by value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=60/6&lt;br /&gt;
    =10&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==^==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The power operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr^Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
The first expression to the power of the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=7^3&lt;br /&gt;
    =343&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ABS==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ABSOLUTE==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
==ABS(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The absolute value operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ABS(Expr)=|Expr|=Absolute(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Absolute value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ABS(-9)=|-9|=Absolute(-9)&lt;br /&gt;
    =9&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AND==		&lt;br /&gt;
TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==ARCCOS==(Expr)	inverse cos of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCSIN==&lt;br /&gt;
(Expr)	inverse sine of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr)	inverse  tan of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==BITWISE OR==&lt;br /&gt;
(Expr, Expr)	Bitwise OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE AND==&lt;br /&gt;
(Expr, Expr)	Bitwise AND of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE XOR==&lt;br /&gt;
(Expr, Expr)	Bitwise exclusive-OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE NOT==&lt;br /&gt;
 Expr	Bitwise NOT of a value[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Expr % Expr==&lt;br /&gt;
	value of the first expression modulo the value of&lt;br /&gt;
	the second expression (assumes that the values&lt;br /&gt;
	of the expressions are integers)&lt;br /&gt;
&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The percentage operator&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr % Expr &lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression modulo the value of the second expression(assumes that the values of the expression are integers&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=19 % 12&lt;br /&gt;
            =7&lt;br /&gt;
&lt;br /&gt;
Example 2:&lt;br /&gt;
           x=10 % 20&lt;br /&gt;
            =10&lt;br /&gt;
&lt;br /&gt;
Example 3:&lt;br /&gt;
           x=10 % 10&lt;br /&gt;
            =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==EXP(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
(Expr) base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=EXP(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Base of the natural logarithm (e) to the power of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=EXP(3)&lt;br /&gt;
            =20.08553692&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
==LOG(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The logarithm operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=LOG(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Natural logarithm of the value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=LOG(0.773)&lt;br /&gt;
    =-0.111820506&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ROUND(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The rounding operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ROUND(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Expression value rounded to the nearest integer&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ROUND(0.773)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==FLOOR(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The flooring operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=FLOOR(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Largest integer smaller than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=FLOOR(0.99)&lt;br /&gt;
    =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CEILING(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The ceiling operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=CEILING(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=CEILING(0.01)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CEILING==&lt;br /&gt;
(Expr)	smallest integer larger than the expression value[[Model Builder&#039;s Guide Chapter 9#Ceiling]]&lt;br /&gt;
&lt;br /&gt;
==CLAMP==&lt;br /&gt;
(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
==CLASSIFIED_DIST==	&lt;br /&gt;
in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST[M]==&lt;br /&gt;
In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
==COS==&lt;br /&gt;
(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta) [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CRITICAL SECTION==&lt;br /&gt;
(Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DEBUG==&lt;br /&gt;
		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION==&lt;br /&gt;
Expr	approximation of line between end cells&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	known location indices. If there is a decision expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr	location indices stored in one-dimensional X. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DIRECTION==&lt;br /&gt;
(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==DISPLAY==		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
==DISPLAY==		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
==DISTANCE==&lt;br /&gt;
(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==ELSE==&lt;br /&gt;
        expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==EQUAL	TRUE== &lt;br /&gt;
(1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==FLOOR==&lt;br /&gt;
(Expr)		largest integer smaller than the expression value[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==GEOMETRIC MEAN==	&lt;br /&gt;
geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER OR EQUAL==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER THAN==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference_1&amp;diff=2304</id>
		<title>Language Reference 1</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference_1&amp;diff=2304"/>
		<updated>2006-10-10T17:05:41Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==ABS==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ABSOLUTE==&lt;br /&gt;
(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
==ABS(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The absolute value operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ABS(Expr)=|Expr|=Absolute(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Absolute value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ABS(-9)=|-9|=Absolute(-9)&lt;br /&gt;
    =9&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AND==		&lt;br /&gt;
TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==ARCCOS==(Expr)	inverse cos of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCSIN==&lt;br /&gt;
(Expr)	inverse sine of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr)	inverse  tan of the value of the expression [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==ARCTAN==&lt;br /&gt;
(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==BITWISE OR==&lt;br /&gt;
(Expr, Expr)	Bitwise OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE AND==&lt;br /&gt;
(Expr, Expr)	Bitwise AND of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE XOR==&lt;br /&gt;
(Expr, Expr)	Bitwise exclusive-OR of two values[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
==BITWISE NOT==&lt;br /&gt;
 Expr	Bitwise NOT of a value[[Model Builder&#039;s Guide Chapter 9#Bit-Vector Functions]]&lt;br /&gt;
&lt;br /&gt;
==+==&lt;br /&gt;
DESCRIPTION:&lt;br /&gt;
The addition operator &lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr+Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the expression is the sum of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=1+2&lt;br /&gt;
    =3&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==-==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The subtraction operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr-Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression minus the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=15-2&lt;br /&gt;
    =13&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==*==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The multiplication operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr*Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value is the product of two expressions&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=5*4&lt;br /&gt;
    =20&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==/==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The division operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr/Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Value of the first expression divided by value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=60/6&lt;br /&gt;
    =10&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==^==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The power operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=Expr^Expr&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
The first expression to the power of the value of the second expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=7^3&lt;br /&gt;
    =343&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ABS(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The absolute value operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ABS(Expr)=|Expr|=Absolute(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Absolute value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ABS(-9)=|-9|=Absolute(-9)&lt;br /&gt;
    =9&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Expr % Expr==&lt;br /&gt;
	value of the first expression modulo the value of&lt;br /&gt;
	the second expression (assumes that the values&lt;br /&gt;
	of the expressions are integers)&lt;br /&gt;
&lt;br /&gt;
==EXP(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
(Expr) base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=EXP(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Base of the natural logarithm (e) to the power of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 1: &lt;br /&gt;
           x=EXP(3)&lt;br /&gt;
            =20.08553692&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
==LOG(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The logarithm operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=LOG(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Natural logarithm of the value of the expression&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=LOG(0.773)&lt;br /&gt;
    =-0.111820506&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==ROUND(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The rounding operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=ROUND(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Expression value rounded to the nearest integer&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=ROUND(0.773)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==FLOOR(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The flooring operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=FLOOR(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Largest integer smaller than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=FLOOR(0.99)&lt;br /&gt;
    =0&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CEILING(Expr)==&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
The ceiling operator&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=CEILING(Expr)&lt;br /&gt;
       &lt;br /&gt;
REQUIRED ARGUMENTS:&lt;br /&gt;
Expr is any expression that evaluates to single numeric value&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
Smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Expressions:]]&lt;br /&gt;
&lt;br /&gt;
Example 1:&lt;br /&gt;
   x=CEILING(0.01)&lt;br /&gt;
    =1&lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CEILING==&lt;br /&gt;
(Expr)	smallest integer larger than the expression value[[Model Builder&#039;s Guide Chapter 9#Ceiling]]&lt;br /&gt;
&lt;br /&gt;
==CLAMP==&lt;br /&gt;
(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
ENDFN&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFY==&lt;br /&gt;
(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Classified and Discrete Functions]]&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST==&lt;br /&gt;
( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
==CLASSIFIED_DIST==	&lt;br /&gt;
in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
==CLASSIFIED_DIST[M]==&lt;br /&gt;
In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
==COS==&lt;br /&gt;
(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta) [[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Trigonometric Functions)]]&lt;br /&gt;
&lt;br /&gt;
==CRITICAL SECTION==&lt;br /&gt;
(Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DEBUG==&lt;br /&gt;
		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION==&lt;br /&gt;
Expr	approximation of line between end cells&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	known location indices. If there is a decision expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr	location indices stored in one-dimensional X. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== Expr location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DECISION== &lt;br /&gt;
Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Region Functions]]&lt;br /&gt;
&lt;br /&gt;
==DIRECTION==&lt;br /&gt;
(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==DISPLAY==		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
==DISPLAY==		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Output Expressions]]&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
==DISTANCE==&lt;br /&gt;
(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Miscellaneous)]]&lt;br /&gt;
&lt;br /&gt;
==ELSE==&lt;br /&gt;
        expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together[[Model Builder&#039;s Guide Chapter 9#Control Expressions]]&lt;br /&gt;
&lt;br /&gt;
==EQUAL	TRUE== &lt;br /&gt;
(1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==FLOOR==&lt;br /&gt;
(Expr)		largest integer smaller than the expression value[[Model Builder&#039;s Guide Chapter 9#Continuous Functions (Arithmetic Functions)]]&lt;br /&gt;
&lt;br /&gt;
==GEOMETRIC MEAN==	&lt;br /&gt;
geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER OR EQUAL==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;br /&gt;
&lt;br /&gt;
==GREATER THAN==	&lt;br /&gt;
TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Composite Functions]]&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference&amp;diff=2002</id>
		<title>Language Reference</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference&amp;diff=2002"/>
		<updated>2006-10-03T14:35:59Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Constants==&lt;br /&gt;
==ZERO==&lt;br /&gt;
	return 0.0&lt;br /&gt;
==ONE==&lt;br /&gt;
	return 1.0&lt;br /&gt;
#Number	return value of the number specified&lt;br /&gt;
&amp;lt;Constant&amp;gt;	return value of a named constant&lt;br /&gt;
&amp;lt;Constant&amp;gt;[Expr]	return value of a named vector constant&lt;br /&gt;
&amp;lt;Constant&amp;gt;[Expr, Expr]	return value of a named array constant&lt;br /&gt;
&amp;lt;Macro&amp;gt;[Expr]	return value of expression at specified index&lt;br /&gt;
	in macro&lt;br /&gt;
&lt;br /&gt;
==Probability Distributions==&lt;br /&gt;
==NORMAL==&lt;br /&gt;
(Expr, Expr)	draw a value from a normal distribution, where&lt;br /&gt;
	the first expression specifies the mean and&lt;br /&gt;
	the second specifies the standard deviation&lt;br /&gt;
&lt;br /&gt;
==SKEWED NORMAL==&lt;br /&gt;
(Expr, Expr, Expr)	draw a value from a skewed normal distribution, 	where the first expression specifies the mode &lt;br /&gt;
	and the second and third specify the standard &lt;br /&gt;
	deviations to the left and right of the mode &lt;br /&gt;
==LOG NORMAL==&lt;br /&gt;
(Expr, Expr)	draw a value from a log normal distribution,&lt;br /&gt;
	where the first expression specifies the mean&lt;br /&gt;
	and the second specifies the standard deviation &lt;br /&gt;
	of the underlying normal distribution&lt;br /&gt;
&lt;br /&gt;
==WEIBULL==&lt;br /&gt;
(Expr, Expr) 	draw a value from a Weibull distribution, where&lt;br /&gt;
	the first expression specifies the beta and the&lt;br /&gt;
	second specifies alpha (Note:terminology varies&lt;br /&gt;
	between sources. The version here is equivalent&lt;br /&gt;
	to that in Excel, with reversal of parameters).&lt;br /&gt;
&lt;br /&gt;
NEGEXP(Expr)	draw a value from a negative exponential 	distribution, where the expression specifies the&lt;br /&gt;
	mean&lt;br /&gt;
 POISSION(Expr)	draw a value from a Poisson distribution&lt;br /&gt;
&lt;br /&gt;
UNIFORM(Expr, Expr)	draw a value from a uniform distribution, where 	the first expression determines the minimum	 	value and the second determines the maximum &lt;br /&gt;
CLASSIFIED_DIST	draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST	in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST[M]	In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
&lt;br /&gt;
===Probability Density and Cumulative Density Functions===&lt;br /&gt;
The following are a set of probability and cumulative density expressions. The results from probability density expressions should be multiplied by a width factor to obtain a probability of value X (i.e. the estimated area under the PDF curve). Without a width factor, the assumed class size is 1. A temporal PDF makes a PDF conditional, where the variable X is assumed to be a time or other increasing value. Essentially, a PDF will give the probability of value X occurring, while a TEMPORAL PDF will give the probability of X occurring given that if hasn’t occurred yet (i.e. given that that actual value of this variable will be &amp;gt;= X).&lt;br /&gt;
&lt;br /&gt;
NORMAL PDF(Expr, Expr, Expr)	normal probability density function, where the 			first expression is the value, the second is the  			mean and the third is the standard deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
NORMAL CDF(Expr, Expr, Expr)	normal cumulative density function, where the 			first expression is the value, the second is the			mean and the third is the standard deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL PDF(Expr, Expr, Expr, Expr)	skewed normal probability density function,&lt;br /&gt;
	where the first expression specifies the value,&lt;br /&gt;
	the second is the mode and the third and fourth	are the standard deviations to the left and right&lt;br /&gt;
	of the mode. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL CDF(Expr, Expr, Expr, Expr)	skewed normal cumulative density function, 			where the first expression specifies the value, &lt;br /&gt;
			the second is the mode, and the third and fourth 			are the left and right standard deviations&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL PDF(Expr, Expr, Expr)	log normal probability density function, where&lt;br /&gt;
			the first expression specifies the value, the&lt;br /&gt;
			second is the mean and the third is the standard &lt;br /&gt;
			deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL CDF(Expr, Expr, Expr)	log normal cumulative density function, where&lt;br /&gt;
			the first expression specifies the value, the &lt;br /&gt;
			second is the mean and the third is the standard &lt;br /&gt;
			deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
NORMAL TEMPORAL PDF(Expr, Expr, Expr) 	temporal normal probability density function &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL TEMPORAL PDF(Expr, Expr, Expr, Expr)&lt;br /&gt;
			temporal skewed normal probability density &lt;br /&gt;
			function&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL TEMPORAL PDF(Expr, Expr, Expr)  temporal log normal probability density&lt;br /&gt;
			function &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
UNIFORM TEMPORAL PDF(Expr, Expr, Expr)	temporal uniform probability density expression&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Arithmetic Functions)===&lt;br /&gt;
&amp;lt;Variable&amp;gt;	value of an independent variable &amp;lt;Variable&amp;gt;[Expr]	value of a vector global variable&lt;br /&gt;
&amp;lt;Variable&amp;gt;[Expr, Expr]	value of an array global variable&lt;br /&gt;
&lt;br /&gt;
(Expr)	value of the expression Expr + Expr	sum of two expressions Expr - Expr	value of the first expression minus the value&lt;br /&gt;
	of the second expression Expr * Expr	product of two expressions Expr / Expr	value of the first expression divided by value&lt;br /&gt;
	of the second expression  Expr ^ Expr	value of the first expression to the power of&lt;br /&gt;
	the value of the second expression. An nth&lt;br /&gt;
	root can be computed with1/n as the power.&lt;br /&gt;
| Expr |	absolute value of the expression &lt;br /&gt;
ABS(Expr)	absolute value of the expression &lt;br /&gt;
ABSOLUTE(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
Expr % Expr	value of the first expression modulo the value of&lt;br /&gt;
	the second expression (assumes that the values&lt;br /&gt;
	of the expressions are integers)&lt;br /&gt;
EXP(Expr)	base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
LOG(Expr)	natural logarithm of the value of the expression.&lt;br /&gt;
	Logarithms in other bases can be computed as&lt;br /&gt;
	logb(x) = ln(x) / ln(b)&lt;br /&gt;
&lt;br /&gt;
ROUND(Expr)	expression value rounded to the nearest integer&lt;br /&gt;
FLOOR(Expr)		largest integer smaller than the expression value&lt;br /&gt;
CEILING(Expr)	smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
CLAMP(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Trigonometric Functions)===&lt;br /&gt;
Angles are all assumed to be in degrees (not radians). In SELES, angles in compass directions (i.e. zero is north, increasing clockwise, in contrast to geometry where zero is each increasing counter-clockwise).&lt;br /&gt;
SIN(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return sin(theta)&lt;br /&gt;
COS(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta)&lt;br /&gt;
TAN(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return tan(theta).&lt;br /&gt;
ARCSIN(Expr)	inverse sine of the value of the expression&lt;br /&gt;
ARCCOS(Expr)	inverse cos of the value of the expression&lt;br /&gt;
ARCTAN(Expr)	inverse tan of the value of the expression&lt;br /&gt;
ARCTAN(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Miscellaneous)===&lt;br /&gt;
RESPONSE(Expr, #A, #B, #C)	two-sided version of a standard response &lt;br /&gt;
function for the value X of the first expression: &lt;br /&gt;
if (X &amp;lt; A) return e^(-(X-A)^2/(2*(C^2))&lt;br /&gt;
			else if (X &amp;gt; B) return e^(-(X-B)^2/(2*(C^2))&lt;br /&gt;
			else return 1&lt;br /&gt;
&lt;br /&gt;
DISTANCE(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
&lt;br /&gt;
DIRECTION(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
&lt;br /&gt;
===Classified and Discrete Functions===&lt;br /&gt;
CLASSIFY(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	return an interpolated value where the value of&lt;br /&gt;
	CLASS Number: Number	variable X is placed between two classes or at&lt;br /&gt;
 	   :	either end of the table.&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): ( Number+)	same as above, except the classes are&lt;br /&gt;
		implicitly 0, …. k-1&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	same as above, except the values in the&lt;br /&gt;
	CLASS Number: Expr	table are obtained by evaluating expressions&lt;br /&gt;
	   :				&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	same as above, except the classes are &lt;br /&gt;
Expr	implicitly 0, …, k-1&lt;br /&gt;
   :					&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file.&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	return the interpolated value where the value of&lt;br /&gt;
	CLASS Number: Number	variable X is placed between two classes or at&lt;br /&gt;
 	   :	either end of the table, and classes can be any.&lt;br /&gt;
ENDFN	real values.&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): ( Number+)	same as above, except the classes are&lt;br /&gt;
		implicitly 0, …. k-1&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	same as above, except the values in the&lt;br /&gt;
	CLASS Number: Expr	table are obtained by evaluating expressions&lt;br /&gt;
	   :				&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	same as above, except the classes are &lt;br /&gt;
Expr	implicitly 0, …, k-1&lt;br /&gt;
   :					&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table&lt;br /&gt;
		file &lt;br /&gt;
&lt;br /&gt;
===Boolean Functions===&lt;br /&gt;
Expr EQ Expr	TRUE if the values of the two expressions are&lt;br /&gt;
		equal; otherwise FALSE&lt;br /&gt;
Expr == Expr	alternate form of EQ comparison (Note: two equal signs distinguish this from an assignment)&lt;br /&gt;
&lt;br /&gt;
Expr NEQ Expr	TRUE if the values are not equal; otherwise&lt;br /&gt;
		FALSE&lt;br /&gt;
Expr != Expr	alternate form of NOT EQUAL comparison&lt;br /&gt;
&lt;br /&gt;
Expr &amp;lt; Expr	TRUE if the value of the first expression is less&lt;br /&gt;
		than the value of the second expression;&lt;br /&gt;
		otherwise FALSE&lt;br /&gt;
Expr &amp;lt;= Expr	TRUE if the value of the first expression is less&lt;br /&gt;
		than or equal to the value of the second&lt;br /&gt;
		expression; otherwise FALSE&lt;br /&gt;
&lt;br /&gt;
Expr &amp;gt; Expr	TRUE if the value of the first expression is&lt;br /&gt;
		greater than the value of the second &lt;br /&gt;
		expression; otherwise FALSE&lt;br /&gt;
Expr &amp;gt;= Expr	TRUE if the value of the first expression is&lt;br /&gt;
		greater than or equal to the value of the &lt;br /&gt;
		second expression; otherwise FALSE&lt;br /&gt;
&lt;br /&gt;
!Expr		Negates the expression Boolean value&lt;br /&gt;
&lt;br /&gt;
Expr AND Expr	TRUE if values of both expressions are&lt;br /&gt;
		TRUE and FALSE otherwise&lt;br /&gt;
&lt;br /&gt;
Expr OR Expr	TRUE if value of at least one expression is&lt;br /&gt;
		TRUE and FALSE otherwise&lt;br /&gt;
&lt;br /&gt;
Note that relations can be cascaded, with the interpretation that each operator applies independently to its surrounding pair of expressions. Thus, the expression: Expression &amp;lt;= Expression &amp;lt;= Expression (e.g. 5 &amp;lt;= age &amp;lt;= 50) specifies a “between” relation, which is TRUE only if the value of the centre expression falls in the specified range.&lt;br /&gt;
&lt;br /&gt;
===Bit-Vector Functions===&lt;br /&gt;
Bit-vector functions treat an integer value (the independent variable) as a sequence of bits, each of which can be independently set and accessed. This can allow use of a single layer to hold lots of Boolean information, since each cell as an integer has 8, 16 or 32 bits. For example, bits 0, 1, 2 and 3 can be used to store four different Boolean states (a, b, c and d), and the sequence 0110 means that states a and d are FALSE and states b and c are TRUE. PositionList is a semi-colon separated sequence of integer or ranges (lower-upper) indicating positions in the integer (0-31). For example, the PositionList 1;4-6;27 indicates bits at positions 1, 4, 5, 6 and 27.&lt;br /&gt;
&lt;br /&gt;
SETAT(Expr, PositionList, #Type)	Set the value specified by the expression, at &lt;br /&gt;
		the positions in PositionList to: FALSE (0) &lt;br /&gt;
		if Type is 0, TRUE (1) if Type is 1,&lt;br /&gt;
		and flip the bits if Type = 2&lt;br /&gt;
&lt;br /&gt;
SETAT(Expr, PositionList,#Type,#Prob)	Same as above, except each position is set&lt;br /&gt;
		with probability #Prob&lt;br /&gt;
&lt;br /&gt;
SELECTAT(Expr, PositionList)	FALSE(0) if none of the bits in PositionList are&lt;br /&gt;
		set in the specified expression value and&lt;br /&gt;
		TRUE(1) otherwise&lt;br /&gt;
&lt;br /&gt;
MAX POSITION(Expr)	Return the maximum 0-based bit position that is &lt;br /&gt;
		set to one in the expression  value (interpreted &lt;br /&gt;
		as a bit-vector), or –1 if no bits are set&lt;br /&gt;
&lt;br /&gt;
MIN POSITION(Expr)	Return the minimum 0-based bit position that is &lt;br /&gt;
		set to one in the expression  value (interpreted &lt;br /&gt;
		as a bit-vector), or –1 if no bits are set&lt;br /&gt;
&lt;br /&gt;
BITWISE OR(Expr, Expr)	Bitwise OR of two values&lt;br /&gt;
BITWISE AND(Expr, Expr)	Bitwise AND of two values&lt;br /&gt;
BITWISE XOR(Expr, Expr)	Bitwise exclusive-OR of two values&lt;br /&gt;
BITWISE NOT Expr	Bitwise NOT of a value&lt;br /&gt;
&lt;br /&gt;
SHIFT LEFT(Expr, Expr)	Shifts value of first expression to the left by &lt;br /&gt;
		number of bits specified by second expression&lt;br /&gt;
SHIFT RIGHT(Expr, Expr)	Shifts value of first expression to the right by &lt;br /&gt;
		number of bits specified by second expression&lt;br /&gt;
&lt;br /&gt;
===Control Expressions===&lt;br /&gt;
Note the difference between the first two “functional if’s” (i.e. a value is returned) and the latter “procedural if’s” (that don’t return a value, but control flow).&lt;br /&gt;
&lt;br /&gt;
IF Expr THEN Expr ELSE Expr	if value of the IF expression is TRUE (&amp;gt;= 1), 	then return the value of the THEN expression,&lt;br /&gt;
	otherwise return value of the ELSE expression&lt;br /&gt;
&lt;br /&gt;
(Expr ? Expr : Expr)	Same as above, but this form can be used as an&lt;br /&gt;
	embedded sub-expression.&lt;br /&gt;
&lt;br /&gt;
IF Expr	Procedural IF statement to process&lt;br /&gt;
 …	sub-expressions denoted by “…” only if the &lt;br /&gt;
ENDFN	expression evaluates to TRUE&lt;br /&gt;
&lt;br /&gt;
IF Expr	Procedural IF statement to process the first set&lt;br /&gt;
 …	of sub-expressions denoted by “…”if the &lt;br /&gt;
ELSE	expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together&lt;br /&gt;
&lt;br /&gt;
WHILE Expr	While loop: process sub-expressions denoted by&lt;br /&gt;
 …	 “…” while the expression evaluates to TRUE&lt;br /&gt;
ENDFN	&lt;br /&gt;
&lt;br /&gt;
PAUSE		Halts the simulation and displays a dialog&lt;br /&gt;
			box to which the user must respond to continue&lt;br /&gt;
&lt;br /&gt;
PAUSE IF Expr	If the expression evaluates to TRUE, halts the &lt;br /&gt;
			simulation and displays a dialog box to which &lt;br /&gt;
			the user must respond to continue&lt;br /&gt;
&lt;br /&gt;
PAUSE(#Value)	Pauses the simulation for the specified number&lt;br /&gt;
			of milliseconds and then continues&lt;br /&gt;
&lt;br /&gt;
PAUSE(#Value) IF Expr	If the expression evaluates to TRUE, Pauses the &lt;br /&gt;
			simulation for the specified number of &lt;br /&gt;
			milliseconds and then continues&lt;br /&gt;
&lt;br /&gt;
WAIT UNTIL Expr	Suspend execution until the expression returns 			TRUE (1). This is intended for controlling&lt;br /&gt;
			communication and synchronization with&lt;br /&gt;
			an external application. &lt;br /&gt;
CRITICAL SECTION (Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).&lt;br /&gt;
&lt;br /&gt;
DEBUG		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.&lt;br /&gt;
&lt;br /&gt;
SEED()		Gets the random number seed&lt;br /&gt;
SEED(Expr)		Sets the random number seed. Value returned is &lt;br /&gt;
			next seed.&lt;br /&gt;
&lt;br /&gt;
RESIZE(Variable, Expr)	Changes size (number of entries) in a global&lt;br /&gt;
			variable. Values are not maintained. Useful for &lt;br /&gt;
			when size is not known prior to simulation.&lt;br /&gt;
&lt;br /&gt;
RECOMPUTE	Only valid in consequent expressions of &lt;br /&gt;
			ProbInit and also when ProbInit recompute flag&lt;br /&gt;
			has been set. Causes prob. surface to be&lt;br /&gt;
			recomputed before next selection&lt;br /&gt;
===Output Expressions===&lt;br /&gt;
DISPLAY		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
&lt;br /&gt;
DISPLAY		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
Note: a label/expression pair can be “expanded” by using the form: Label#n1:n2: Expr, where n1 and n2 are integers or constant names. This will create n2-n1+1 columns rather than a single column. The system variable Index can be used in the expression, and will take on values n1, n1+1,…,n2 for each column, respectively.&lt;br /&gt;
&lt;br /&gt;
===Composite Functions===&lt;br /&gt;
Compound expressions all have the same form of an expression name followed by a list of sub-expressions.  If the first expression is a region function, then the subsequent expressions are all evaluated over the defined region, instead of only at the current cell (however, it is usually simpler to use an OVER REGION expression). When arithmetic expression become complex, sometimes composite expressions can be written more clearly. The general format is as follows:&lt;br /&gt;
&lt;br /&gt;
CompositeExpressionName&lt;br /&gt;
	Expr&lt;br /&gt;
	      :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
The following composite expressions are supported:&lt;br /&gt;
&lt;br /&gt;
===SUM===&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
Returns the number that is the sum of all the expressions.&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=SUM &lt;br /&gt;
       Expr&lt;br /&gt;
       ...  &lt;br /&gt;
     ENDFN&lt;br /&gt;
&lt;br /&gt;
REQUIRED ARGUMENTS: &lt;br /&gt;
Expr is any expression that evaluates to single numeric value.&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
the sum of all the arguments.&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
EXAMPLES: &amp;lt;add carriage return here&amp;gt;&lt;br /&gt;
Example 1:&lt;br /&gt;
   y = 3&lt;br /&gt;
   x = SUM  &lt;br /&gt;
         y  &lt;br /&gt;
         y+2  &lt;br /&gt;
         5  &lt;br /&gt;
       ENDFN &lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===PRODUCT===&lt;br /&gt;
	product of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
DIVIDE	successive division of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
MEAN		average of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
GEOMETRIC MEAN	geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
MIN		minimum of the sub-expressions &lt;br /&gt;
&lt;br /&gt;
MAX		maximum of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
EQUAL	TRUE (1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
NOT EQUAL	FALSE (0) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and TRUE (1) otherwise&lt;br /&gt;
&lt;br /&gt;
OR		TRUE (1) if at least one sub-expression&lt;br /&gt;
		evaluates to TRUE and FALSE (0) otherwise &lt;br /&gt;
&lt;br /&gt;
AND		TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
&lt;br /&gt;
LESS OR EQUAL	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;lt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
ORDERED	same as LESS OR EQUAL&lt;br /&gt;
&lt;br /&gt;
LESS THAN	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;lt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
STRICT ORDERED	same as LESS THAN&lt;br /&gt;
&lt;br /&gt;
GREATER OR EQUAL	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
GREATER THAN	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
===Region Functions===&lt;br /&gt;
A region function returns the set of locations, one on each call. Their use is limited to the main expression of EventLocation, SpreadLocation, AgentLocation and MoveLocation properties, as the first expression of composite expressions and in OVER REGION functions.&lt;br /&gt;
&lt;br /&gt;
REGION WHOLE MAP	defines the region consisting of the entire&lt;br /&gt;
	DECISION Expr	landscape. If there is a decision expression, &lt;br /&gt;
		then only those cells for which this expression &lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION RECT (Expr, Expr, Expr, Expr)	defines a rectangular region. If there is a&lt;br /&gt;
	DECISION Expr	decision expression defined, then only those&lt;br /&gt;
		cells for which this expression returns&lt;br /&gt;
		TRUE will be included&lt;br /&gt;
&lt;br /&gt;
REGION CENTRED (Expr, Expr [, DistanceType][, WRAPPED])&lt;br /&gt;
	DECISION Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
&lt;br /&gt;
REGION LOCATION LIST(Number+)	defines the region consisting of a set of &lt;br /&gt;
	DECISION Expr	known location indices. If there is a decision 		expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION LOCATION LIST(X,n)	defines the region consisting of a set of n&lt;br /&gt;
	DECISION Expr	location indices stored in one-dimensional X. &lt;br /&gt;
&lt;br /&gt;
REGION LOCATION (Expr)	defines the region consisting of a of a single&lt;br /&gt;
	DECISION Expr	location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION VECTOR (StartLocation, EndLocation)	defines region consisting of cells along an&lt;br /&gt;
	DECISION Expr	approximation of line between end cells&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
&lt;br /&gt;
REGION COST SURFACE(EndLocation, MaxCost, CostSurface)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
	COST Expr&lt;br /&gt;
REGION COST SURFACE(EndLocation, MaxCost, CostSurface, LeastCostNeighbs, AnchorLoc)&lt;br /&gt;
	DECISION Expr	&lt;br /&gt;
	COST Expr&lt;br /&gt;
		Defines a region surrounding a cell with &lt;br /&gt;
		cumulative costs less than MaxCost. Stops&lt;br /&gt;
		growing when EndLocation is reached or all&lt;br /&gt;
		costs are greater than MaxCost. Second form &lt;br /&gt;
		also records gradient and anchor location&lt;br /&gt;
		layers. The CostSurface layer records the&lt;br /&gt;
		cumulative cost from the cost function&lt;br /&gt;
&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
	COST Expr&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation, LeastCostNeighbs)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation, LeastCostNeighbs, AnchorLoc)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
		Defines a region with cells that approximate&lt;br /&gt;
		the least-cost path between two cells. The&lt;br /&gt;
		first generates the cost function internally.&lt;br /&gt;
		The latter two use input information from a&lt;br /&gt;
		pre-computed cost surface region. Providing &lt;br /&gt;
		both the gradient and anchor location layers &lt;br /&gt;
		provides the most accurate approximation.&lt;br /&gt;
&lt;br /&gt;
Iteration is a common aspect of models (even if it is very procedural). Most programming languages offer a “for-loop” of some kind. SELES presently provides “over index sequence” expressions as a slightly more declarative (although also more cumbersome) expression for iterating. While-loops can also be used.&lt;br /&gt;
&lt;br /&gt;
OVER INDEX SEQUENCE(Expr, Expr)	defines linear sequence of location indices. &lt;br /&gt;
	DECISION Expr	If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns &lt;br /&gt;
		TRUE will be included.  The system variable &lt;br /&gt;
		Index holds the value of the index at each value &lt;br /&gt;
		in the sequence&lt;br /&gt;
&lt;br /&gt;
Over region expressions are very frequently used to visit all cells in a landscape that meet some condition (e.g. to compute the size of the forest at initiation).&lt;br /&gt;
&lt;br /&gt;
OVER RegionFunction	Apply a set of sub-expressions at all spatial&lt;br /&gt;
   Expression	locations specified by a region function&lt;br /&gt;
	        :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
AT LOCATION #Expr	Apply a set of state-changes at a specified&lt;br /&gt;
   Expression	location&lt;br /&gt;
	:&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
===Matrix Functions===&lt;br /&gt;
Matrix assignment is indicated using “[=]” instead of “=”.  The proper dimensions of the component arrays must be met.&lt;br /&gt;
&lt;br /&gt;
Variable [=] Variable	assign variable of same dimension, or a &lt;br /&gt;
	single value to all entries&lt;br /&gt;
Variable [=] Variable + Variable	sum variables of same dimension (or with a &lt;br /&gt;
	constant)&lt;br /&gt;
Variable [=] Variable - Variable	subtract variables of same dimension (or&lt;br /&gt;
	with a constant)&lt;br /&gt;
Variable [=] Variable * Variable	matrix or scalar multiplication. &lt;br /&gt;
&lt;br /&gt;
Variable [=] TRANSPOSE(Variable)	matrix transposition&lt;br /&gt;
Variable [=] Variable^-1	invert a matrix&lt;br /&gt;
Variable = SUM(Variable)	sum all entries in a matrix&lt;br /&gt;
Variable [=] SUM ROWS (Variable)	sum all rows of a matrix (result has one&lt;br /&gt;
	value per column)&lt;br /&gt;
Variable [=] SUM COLS(Variable)	sum all columns of a matrix&lt;br /&gt;
&lt;br /&gt;
Variables [=] SORT(Variable, Expr)	sort rows of an input matrix where rank is &lt;br /&gt;
	given by Expr. The system variable “Index” &lt;br /&gt;
	can appear in the expression and will take on&lt;br /&gt;
	the range of indices in the input array. The &lt;br /&gt;
	resulting sorted matrix will be assigned.&lt;br /&gt;
&lt;br /&gt;
Variable [=] MPM_MULT(Variable, Variable)	Performs a “matrix population model” &lt;br /&gt;
	(MPM) integer-based multiplication. &lt;br /&gt;
	Assumes that first matrix is two-dimensional &lt;br /&gt;
	and that second is a vector. The result is &lt;br /&gt;
	two-dimensional, where entries above &lt;br /&gt;
	diagonal represent &amp;quot;offspring&amp;quot;, entries on the&lt;br /&gt;
	diagonal represent &amp;quot;survivors&amp;quot; and entries &lt;br /&gt;
	below the diagonal represent &amp;quot;succeeders&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Variable [=] CONTAG(Variable, Variable)	Creates a “temporal contagion” matrix. &lt;br /&gt;
	Given probabilities (first parameter) for a set&lt;br /&gt;
	of states and a two-dimensional contagion &lt;br /&gt;
	array (values –1 to 1 indicating affinity), &lt;br /&gt;
	generates a matrix where each row is a prob. &lt;br /&gt;
	dist. For transitions given the row value, and &lt;br /&gt;
	the overall target dist. will be met.&lt;br /&gt;
&lt;br /&gt;
===General Set, List and Graph Functions===&lt;br /&gt;
REMOVE ALL(LinkedVariable)	clears variable. No return value&lt;br /&gt;
SIZE(LinkedVariable)	number of elements, entries or nodes&lt;br /&gt;
IS EMPTY(LinkedVariable)	TRUE if and only if variable has 0 elements&lt;br /&gt;
&lt;br /&gt;
FIRST(LinkedVariable)	returns position of first element, entry or&lt;br /&gt;
	node&lt;br /&gt;
NEXT(LinkedVariable, PosVariable)	returns position of element, entry or node &lt;br /&gt;
	following position provided&lt;br /&gt;
PREV(LinkedVariable, PosVariable)	returns position of element, entry or node &lt;br /&gt;
	preceding position provided&lt;br /&gt;
REMOVE(LinkedVariable, PosVariable)	remove and deletes element, entry or node &lt;br /&gt;
	at position&lt;br /&gt;
&lt;br /&gt;
Variable [=] GET(LinkedVariable, PosVariable)	get element, entry or node at position&lt;br /&gt;
X [=] GET(LinkedVariable, PosVariable, Index)	get single value in a given index&lt;br /&gt;
SET(LinkedVariable, PosVariable, Variable)	set element, entry or node at position&lt;br /&gt;
SET(LinkedVariable, PosVariable, entryIndex, Value)&lt;br /&gt;
	set value at specified index of element,&lt;br /&gt;
	entry or node at position&lt;br /&gt;
FIND(LinkedVariable, , TmpVariable Condition)	return first position of an element, entry or&lt;br /&gt;
	node that satisfies the condition&lt;br /&gt;
FIND NEXT(LinkedVariable, PosVariable, TmpVariable, Condition)	&lt;br /&gt;
	return next position of an element, entry or&lt;br /&gt;
	node that satisfies the condition&lt;br /&gt;
SORT(LinkedVariable, TmpVariable1, TmpVariable2, Condition)&lt;br /&gt;
	sort elements, entries or nodes according to &lt;br /&gt;
	condition&lt;br /&gt;
&lt;br /&gt;
===Set Functions===&lt;br /&gt;
CONTAINS(SetVariable, ElementVariable)	TRUE if and only if set variable “contains” &lt;br /&gt;
	variable provided, where two elements are &lt;br /&gt;
	identical if they have identical values&lt;br /&gt;
INSERT(SetVariable, ElementVariable)	add element to set. Only changes set if it &lt;br /&gt;
	doesn’t already contain the element&lt;br /&gt;
SetVariable = UNION(Set1, Set2)	take union of two set variables&lt;br /&gt;
SetVariable = INTERSECTION(Sete1, Set2)	take intersection of two set variables&lt;br /&gt;
SetVariable = SUBTRACT(Sete1, Set2)	subtract second set variable from first&lt;br /&gt;
&lt;br /&gt;
===List Functions===&lt;br /&gt;
HEAD(ListVariable)	returns position of first entry&lt;br /&gt;
TAIL(ListVariable)	returns position of last entry&lt;br /&gt;
INSERT HEAD(ListVariable, EntryElement)	add an entry to front of list&lt;br /&gt;
INSERT TAIL(ListVariable, EntryElement)	add an entry to end of list&lt;br /&gt;
INSERT BEFORE(ListVariable, Index, EntryElement)&lt;br /&gt;
	add an entry before given index&lt;br /&gt;
INSERT AFTER(ListVariable, Index, EntryElement)&lt;br /&gt;
	add an entry after given index&lt;br /&gt;
INSERT AT(ListVariable, Index, EntryElement)	add an entry at given index&lt;br /&gt;
&lt;br /&gt;
REMOVE HEAD(ListVariable)	removes and deletes first entry&lt;br /&gt;
REMOVE TAIL (ListVariable)	removes and deletes last entry&lt;br /&gt;
REMOVE AT INDEX(ListVariable, Index)	removes and deletes entry at given index&lt;br /&gt;
&lt;br /&gt;
Variable [=] GET HEAD(ListVariable)	returns first entry&lt;br /&gt;
Variable [=] GET TAIL(ListVariable)	returns first entry&lt;br /&gt;
Variable [=] GET AT INDEX(ListVariable, Index)	returns entry at given index&lt;br /&gt;
Pos = POS AT INDEX(ListVariable, Index)	returns position at given index&lt;br /&gt;
&lt;br /&gt;
===Tree Functions===&lt;br /&gt;
ADD ROOT(TreeVariable, EntryElement)	add root element of a tree&lt;br /&gt;
INSERT LEFT CHILD(TreeVariable, PosVariable, EntryElement)&lt;br /&gt;
	add child to a node on the left of current&lt;br /&gt;
	children&lt;br /&gt;
INSERT RIGHT CHILD(TreeVariable, PosVariable, EntryElement)&lt;br /&gt;
	add child to a node on the right of current&lt;br /&gt;
	children&lt;br /&gt;
INSERT CHILD(TreeVariable, PosVariable, EntryElement, Index)&lt;br /&gt;
	add child to a node at given index (from&lt;br /&gt;
	left)&lt;br /&gt;
&lt;br /&gt;
n = CHILDREN(TreeVariable, PosVariable)	number of children at a given position&lt;br /&gt;
Pos = PARENT(TreeVariable, PosVariable)	Position of parent of a node&lt;br /&gt;
Pos = LEFT CHILD(TreeVariable, PosVariable)	Position of leftmost child of a node&lt;br /&gt;
Pos = RIGHT CHILD(TreeVariable, PosVariable)	Position of rightmost child of a node&lt;br /&gt;
Pos = CHILD(TreeVariable, PosVariable, Index)	Position of indexed (from left) child of a &lt;br /&gt;
	node&lt;br /&gt;
Pos = NEXT SIBLING(TreeVariable, PosVariable)	Position of next sibling to right of a node&lt;br /&gt;
Pos = PREV SIBLING(TreeVariable, PosVariable)	Position of previous  sibling to right of a &lt;br /&gt;
node&lt;br /&gt;
&lt;br /&gt;
Pos = NEXT DFS(TreeVariable, PosVariable)	Position of next node in depth-first&lt;br /&gt;
	pre-order traversal of a tree. If the position&lt;br /&gt;
	variable is NULL, then the root is returned&lt;br /&gt;
Pos = NEXT POSTORDER DFS(TreeVariable, PosVariable)&lt;br /&gt;
	Position of next node in depth-first&lt;br /&gt;
	post-order traversal of a tree. If the position&lt;br /&gt;
	variable is NULL, then the root is returned&lt;br /&gt;
Variable [=] GET LEFT CHILD(TreeVariable, PosVariable)&lt;br /&gt;
	returns entry of leftmost child for a given&lt;br /&gt;
	node&lt;br /&gt;
Variable [=] GET RIGHT CHILD(TreeVariable, PosVariable)&lt;br /&gt;
	returns entry of rightmost child for a given&lt;br /&gt;
	node&lt;br /&gt;
Variable [=] GET CHILD(TreeVariable, PosVariable, Index)&lt;br /&gt;
	returns entry of child with given index&lt;br /&gt;
	(from left) for a given node&lt;br /&gt;
&lt;br /&gt;
===Graph Functions===&lt;br /&gt;
REMOVE ALL LINKS(GraphVariable) 	clears links of a graph variable&lt;br /&gt;
SIZE LINKS(GraphVariable)	number of links in graph&lt;br /&gt;
IS EMPTY LINKS(GraphVariable)	TRUE if and only if graph has 0 links&lt;br /&gt;
&lt;br /&gt;
FIRST LINK(GraphVariable)	returns position of first link&lt;br /&gt;
NEXT LINK (GraphVariable, PosVariable)	returns position of link following position&lt;br /&gt;
	provided&lt;br /&gt;
PREV LINK (GraphVariable, PosVariable)	returns position of link preceding position&lt;br /&gt;
	provided&lt;br /&gt;
Variable [=] GET LINK(GraphVariable, PosVariable)&lt;br /&gt;
	get link at position&lt;br /&gt;
CONTAINS LINK(GraphVariable, LinkVariable)	TRUE if and only if graph variable contains &lt;br /&gt;
	variable provided&lt;br /&gt;
REMOVE LINK(GraphVariable, PosVariable)	remove and deletes link at position&lt;br /&gt;
SET LINK(GraphVariable, PosVariable, LinkVariable)&lt;br /&gt;
	 Set link at position&lt;br /&gt;
SET LINK(GraphVariable, PosVariable, entryIndex, Value)&lt;br /&gt;
	Set value at specified index of link at&lt;br /&gt;
	position&lt;br /&gt;
FIND LINK(GraphVariable, TmpVariable, Condition)&lt;br /&gt;
	Return first position of link that satisfies the&lt;br /&gt;
	condition&lt;br /&gt;
FIND NEXT LINK(GraphVariable, PosVariable, TmpVariable, Condition)&lt;br /&gt;
	Return next position of a link that satisfies &lt;br /&gt;
	the condition&lt;br /&gt;
SORT LINKS(GraphVariable, TmpVariable1, TmpVariable2, Condition)&lt;br /&gt;
	Sort links according to condition&lt;br /&gt;
LINKED(GraphVariable, NodeVariable1, NodeVariable2, LinkType)&lt;br /&gt;
	TRUE if the nodes are linked. Set LinkType &lt;br /&gt;
	to 0 for direct links and 1 for indirect&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference&amp;diff=2001</id>
		<title>Language Reference</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference&amp;diff=2001"/>
		<updated>2006-10-03T14:35:02Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Constants==&lt;br /&gt;
===ZERO===&lt;br /&gt;
	return 0.0&lt;br /&gt;
===ONE===&lt;br /&gt;
	return 1.0&lt;br /&gt;
#Number	return value of the number specified&lt;br /&gt;
&amp;lt;Constant&amp;gt;	return value of a named constant&lt;br /&gt;
&amp;lt;Constant&amp;gt;[Expr]	return value of a named vector constant&lt;br /&gt;
&amp;lt;Constant&amp;gt;[Expr, Expr]	return value of a named array constant&lt;br /&gt;
&amp;lt;Macro&amp;gt;[Expr]	return value of expression at specified index&lt;br /&gt;
	in macro&lt;br /&gt;
&lt;br /&gt;
==Probability Distributions==&lt;br /&gt;
===NORMAL===&lt;br /&gt;
(Expr, Expr)	draw a value from a normal distribution, where&lt;br /&gt;
	the first expression specifies the mean and&lt;br /&gt;
	the second specifies the standard deviation&lt;br /&gt;
&lt;br /&gt;
===SKEWED NORMAL===&lt;br /&gt;
(Expr, Expr, Expr)	draw a value from a skewed normal distribution, 	where the first expression specifies the mode &lt;br /&gt;
	and the second and third specify the standard &lt;br /&gt;
	deviations to the left and right of the mode &lt;br /&gt;
===LOG NORMAL===&lt;br /&gt;
(Expr, Expr)	draw a value from a log normal distribution,&lt;br /&gt;
	where the first expression specifies the mean&lt;br /&gt;
	and the second specifies the standard deviation &lt;br /&gt;
	of the underlying normal distribution&lt;br /&gt;
&lt;br /&gt;
===WEIBULL===&lt;br /&gt;
(Expr, Expr) 	draw a value from a Weibull distribution, where&lt;br /&gt;
	the first expression specifies the beta and the&lt;br /&gt;
	second specifies alpha (Note:terminology varies&lt;br /&gt;
	between sources. The version here is equivalent&lt;br /&gt;
	to that in Excel, with reversal of parameters).&lt;br /&gt;
&lt;br /&gt;
NEGEXP(Expr)	draw a value from a negative exponential 	distribution, where the expression specifies the&lt;br /&gt;
	mean&lt;br /&gt;
 POISSION(Expr)	draw a value from a Poisson distribution&lt;br /&gt;
&lt;br /&gt;
UNIFORM(Expr, Expr)	draw a value from a uniform distribution, where 	the first expression determines the minimum	 	value and the second determines the maximum &lt;br /&gt;
CLASSIFIED_DIST	draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST	in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST[M]	In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
&lt;br /&gt;
===Probability Density and Cumulative Density Functions===&lt;br /&gt;
The following are a set of probability and cumulative density expressions. The results from probability density expressions should be multiplied by a width factor to obtain a probability of value X (i.e. the estimated area under the PDF curve). Without a width factor, the assumed class size is 1. A temporal PDF makes a PDF conditional, where the variable X is assumed to be a time or other increasing value. Essentially, a PDF will give the probability of value X occurring, while a TEMPORAL PDF will give the probability of X occurring given that if hasn’t occurred yet (i.e. given that that actual value of this variable will be &amp;gt;= X).&lt;br /&gt;
&lt;br /&gt;
NORMAL PDF(Expr, Expr, Expr)	normal probability density function, where the 			first expression is the value, the second is the  			mean and the third is the standard deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
NORMAL CDF(Expr, Expr, Expr)	normal cumulative density function, where the 			first expression is the value, the second is the			mean and the third is the standard deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL PDF(Expr, Expr, Expr, Expr)	skewed normal probability density function,&lt;br /&gt;
	where the first expression specifies the value,&lt;br /&gt;
	the second is the mode and the third and fourth	are the standard deviations to the left and right&lt;br /&gt;
	of the mode. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL CDF(Expr, Expr, Expr, Expr)	skewed normal cumulative density function, 			where the first expression specifies the value, &lt;br /&gt;
			the second is the mode, and the third and fourth 			are the left and right standard deviations&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL PDF(Expr, Expr, Expr)	log normal probability density function, where&lt;br /&gt;
			the first expression specifies the value, the&lt;br /&gt;
			second is the mean and the third is the standard &lt;br /&gt;
			deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL CDF(Expr, Expr, Expr)	log normal cumulative density function, where&lt;br /&gt;
			the first expression specifies the value, the &lt;br /&gt;
			second is the mean and the third is the standard &lt;br /&gt;
			deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
NORMAL TEMPORAL PDF(Expr, Expr, Expr) 	temporal normal probability density function &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL TEMPORAL PDF(Expr, Expr, Expr, Expr)&lt;br /&gt;
			temporal skewed normal probability density &lt;br /&gt;
			function&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL TEMPORAL PDF(Expr, Expr, Expr)  temporal log normal probability density&lt;br /&gt;
			function &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
UNIFORM TEMPORAL PDF(Expr, Expr, Expr)	temporal uniform probability density expression&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Arithmetic Functions)===&lt;br /&gt;
&amp;lt;Variable&amp;gt;	value of an independent variable &amp;lt;Variable&amp;gt;[Expr]	value of a vector global variable&lt;br /&gt;
&amp;lt;Variable&amp;gt;[Expr, Expr]	value of an array global variable&lt;br /&gt;
&lt;br /&gt;
(Expr)	value of the expression Expr + Expr	sum of two expressions Expr - Expr	value of the first expression minus the value&lt;br /&gt;
	of the second expression Expr * Expr	product of two expressions Expr / Expr	value of the first expression divided by value&lt;br /&gt;
	of the second expression  Expr ^ Expr	value of the first expression to the power of&lt;br /&gt;
	the value of the second expression. An nth&lt;br /&gt;
	root can be computed with1/n as the power.&lt;br /&gt;
| Expr |	absolute value of the expression &lt;br /&gt;
ABS(Expr)	absolute value of the expression &lt;br /&gt;
ABSOLUTE(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
Expr % Expr	value of the first expression modulo the value of&lt;br /&gt;
	the second expression (assumes that the values&lt;br /&gt;
	of the expressions are integers)&lt;br /&gt;
EXP(Expr)	base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
LOG(Expr)	natural logarithm of the value of the expression.&lt;br /&gt;
	Logarithms in other bases can be computed as&lt;br /&gt;
	logb(x) = ln(x) / ln(b)&lt;br /&gt;
&lt;br /&gt;
ROUND(Expr)	expression value rounded to the nearest integer&lt;br /&gt;
FLOOR(Expr)		largest integer smaller than the expression value&lt;br /&gt;
CEILING(Expr)	smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
CLAMP(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Trigonometric Functions)===&lt;br /&gt;
Angles are all assumed to be in degrees (not radians). In SELES, angles in compass directions (i.e. zero is north, increasing clockwise, in contrast to geometry where zero is each increasing counter-clockwise).&lt;br /&gt;
SIN(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return sin(theta)&lt;br /&gt;
COS(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta)&lt;br /&gt;
TAN(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return tan(theta).&lt;br /&gt;
ARCSIN(Expr)	inverse sine of the value of the expression&lt;br /&gt;
ARCCOS(Expr)	inverse cos of the value of the expression&lt;br /&gt;
ARCTAN(Expr)	inverse tan of the value of the expression&lt;br /&gt;
ARCTAN(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Miscellaneous)===&lt;br /&gt;
RESPONSE(Expr, #A, #B, #C)	two-sided version of a standard response &lt;br /&gt;
function for the value X of the first expression: &lt;br /&gt;
if (X &amp;lt; A) return e^(-(X-A)^2/(2*(C^2))&lt;br /&gt;
			else if (X &amp;gt; B) return e^(-(X-B)^2/(2*(C^2))&lt;br /&gt;
			else return 1&lt;br /&gt;
&lt;br /&gt;
DISTANCE(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
&lt;br /&gt;
DIRECTION(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
&lt;br /&gt;
===Classified and Discrete Functions===&lt;br /&gt;
CLASSIFY(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	return an interpolated value where the value of&lt;br /&gt;
	CLASS Number: Number	variable X is placed between two classes or at&lt;br /&gt;
 	   :	either end of the table.&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): ( Number+)	same as above, except the classes are&lt;br /&gt;
		implicitly 0, …. k-1&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	same as above, except the values in the&lt;br /&gt;
	CLASS Number: Expr	table are obtained by evaluating expressions&lt;br /&gt;
	   :				&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	same as above, except the classes are &lt;br /&gt;
Expr	implicitly 0, …, k-1&lt;br /&gt;
   :					&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file.&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	return the interpolated value where the value of&lt;br /&gt;
	CLASS Number: Number	variable X is placed between two classes or at&lt;br /&gt;
 	   :	either end of the table, and classes can be any.&lt;br /&gt;
ENDFN	real values.&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): ( Number+)	same as above, except the classes are&lt;br /&gt;
		implicitly 0, …. k-1&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	same as above, except the values in the&lt;br /&gt;
	CLASS Number: Expr	table are obtained by evaluating expressions&lt;br /&gt;
	   :				&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	same as above, except the classes are &lt;br /&gt;
Expr	implicitly 0, …, k-1&lt;br /&gt;
   :					&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table&lt;br /&gt;
		file &lt;br /&gt;
&lt;br /&gt;
===Boolean Functions===&lt;br /&gt;
Expr EQ Expr	TRUE if the values of the two expressions are&lt;br /&gt;
		equal; otherwise FALSE&lt;br /&gt;
Expr == Expr	alternate form of EQ comparison (Note: two equal signs distinguish this from an assignment)&lt;br /&gt;
&lt;br /&gt;
Expr NEQ Expr	TRUE if the values are not equal; otherwise&lt;br /&gt;
		FALSE&lt;br /&gt;
Expr != Expr	alternate form of NOT EQUAL comparison&lt;br /&gt;
&lt;br /&gt;
Expr &amp;lt; Expr	TRUE if the value of the first expression is less&lt;br /&gt;
		than the value of the second expression;&lt;br /&gt;
		otherwise FALSE&lt;br /&gt;
Expr &amp;lt;= Expr	TRUE if the value of the first expression is less&lt;br /&gt;
		than or equal to the value of the second&lt;br /&gt;
		expression; otherwise FALSE&lt;br /&gt;
&lt;br /&gt;
Expr &amp;gt; Expr	TRUE if the value of the first expression is&lt;br /&gt;
		greater than the value of the second &lt;br /&gt;
		expression; otherwise FALSE&lt;br /&gt;
Expr &amp;gt;= Expr	TRUE if the value of the first expression is&lt;br /&gt;
		greater than or equal to the value of the &lt;br /&gt;
		second expression; otherwise FALSE&lt;br /&gt;
&lt;br /&gt;
!Expr		Negates the expression Boolean value&lt;br /&gt;
&lt;br /&gt;
Expr AND Expr	TRUE if values of both expressions are&lt;br /&gt;
		TRUE and FALSE otherwise&lt;br /&gt;
&lt;br /&gt;
Expr OR Expr	TRUE if value of at least one expression is&lt;br /&gt;
		TRUE and FALSE otherwise&lt;br /&gt;
&lt;br /&gt;
Note that relations can be cascaded, with the interpretation that each operator applies independently to its surrounding pair of expressions. Thus, the expression: Expression &amp;lt;= Expression &amp;lt;= Expression (e.g. 5 &amp;lt;= age &amp;lt;= 50) specifies a “between” relation, which is TRUE only if the value of the centre expression falls in the specified range.&lt;br /&gt;
&lt;br /&gt;
===Bit-Vector Functions===&lt;br /&gt;
Bit-vector functions treat an integer value (the independent variable) as a sequence of bits, each of which can be independently set and accessed. This can allow use of a single layer to hold lots of Boolean information, since each cell as an integer has 8, 16 or 32 bits. For example, bits 0, 1, 2 and 3 can be used to store four different Boolean states (a, b, c and d), and the sequence 0110 means that states a and d are FALSE and states b and c are TRUE. PositionList is a semi-colon separated sequence of integer or ranges (lower-upper) indicating positions in the integer (0-31). For example, the PositionList 1;4-6;27 indicates bits at positions 1, 4, 5, 6 and 27.&lt;br /&gt;
&lt;br /&gt;
SETAT(Expr, PositionList, #Type)	Set the value specified by the expression, at &lt;br /&gt;
		the positions in PositionList to: FALSE (0) &lt;br /&gt;
		if Type is 0, TRUE (1) if Type is 1,&lt;br /&gt;
		and flip the bits if Type = 2&lt;br /&gt;
&lt;br /&gt;
SETAT(Expr, PositionList,#Type,#Prob)	Same as above, except each position is set&lt;br /&gt;
		with probability #Prob&lt;br /&gt;
&lt;br /&gt;
SELECTAT(Expr, PositionList)	FALSE(0) if none of the bits in PositionList are&lt;br /&gt;
		set in the specified expression value and&lt;br /&gt;
		TRUE(1) otherwise&lt;br /&gt;
&lt;br /&gt;
MAX POSITION(Expr)	Return the maximum 0-based bit position that is &lt;br /&gt;
		set to one in the expression  value (interpreted &lt;br /&gt;
		as a bit-vector), or –1 if no bits are set&lt;br /&gt;
&lt;br /&gt;
MIN POSITION(Expr)	Return the minimum 0-based bit position that is &lt;br /&gt;
		set to one in the expression  value (interpreted &lt;br /&gt;
		as a bit-vector), or –1 if no bits are set&lt;br /&gt;
&lt;br /&gt;
BITWISE OR(Expr, Expr)	Bitwise OR of two values&lt;br /&gt;
BITWISE AND(Expr, Expr)	Bitwise AND of two values&lt;br /&gt;
BITWISE XOR(Expr, Expr)	Bitwise exclusive-OR of two values&lt;br /&gt;
BITWISE NOT Expr	Bitwise NOT of a value&lt;br /&gt;
&lt;br /&gt;
SHIFT LEFT(Expr, Expr)	Shifts value of first expression to the left by &lt;br /&gt;
		number of bits specified by second expression&lt;br /&gt;
SHIFT RIGHT(Expr, Expr)	Shifts value of first expression to the right by &lt;br /&gt;
		number of bits specified by second expression&lt;br /&gt;
&lt;br /&gt;
===Control Expressions===&lt;br /&gt;
Note the difference between the first two “functional if’s” (i.e. a value is returned) and the latter “procedural if’s” (that don’t return a value, but control flow).&lt;br /&gt;
&lt;br /&gt;
IF Expr THEN Expr ELSE Expr	if value of the IF expression is TRUE (&amp;gt;= 1), 	then return the value of the THEN expression,&lt;br /&gt;
	otherwise return value of the ELSE expression&lt;br /&gt;
&lt;br /&gt;
(Expr ? Expr : Expr)	Same as above, but this form can be used as an&lt;br /&gt;
	embedded sub-expression.&lt;br /&gt;
&lt;br /&gt;
IF Expr	Procedural IF statement to process&lt;br /&gt;
 …	sub-expressions denoted by “…” only if the &lt;br /&gt;
ENDFN	expression evaluates to TRUE&lt;br /&gt;
&lt;br /&gt;
IF Expr	Procedural IF statement to process the first set&lt;br /&gt;
 …	of sub-expressions denoted by “…”if the &lt;br /&gt;
ELSE	expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together&lt;br /&gt;
&lt;br /&gt;
WHILE Expr	While loop: process sub-expressions denoted by&lt;br /&gt;
 …	 “…” while the expression evaluates to TRUE&lt;br /&gt;
ENDFN	&lt;br /&gt;
&lt;br /&gt;
PAUSE		Halts the simulation and displays a dialog&lt;br /&gt;
			box to which the user must respond to continue&lt;br /&gt;
&lt;br /&gt;
PAUSE IF Expr	If the expression evaluates to TRUE, halts the &lt;br /&gt;
			simulation and displays a dialog box to which &lt;br /&gt;
			the user must respond to continue&lt;br /&gt;
&lt;br /&gt;
PAUSE(#Value)	Pauses the simulation for the specified number&lt;br /&gt;
			of milliseconds and then continues&lt;br /&gt;
&lt;br /&gt;
PAUSE(#Value) IF Expr	If the expression evaluates to TRUE, Pauses the &lt;br /&gt;
			simulation for the specified number of &lt;br /&gt;
			milliseconds and then continues&lt;br /&gt;
&lt;br /&gt;
WAIT UNTIL Expr	Suspend execution until the expression returns 			TRUE (1). This is intended for controlling&lt;br /&gt;
			communication and synchronization with&lt;br /&gt;
			an external application. &lt;br /&gt;
CRITICAL SECTION (Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).&lt;br /&gt;
&lt;br /&gt;
DEBUG		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.&lt;br /&gt;
&lt;br /&gt;
SEED()		Gets the random number seed&lt;br /&gt;
SEED(Expr)		Sets the random number seed. Value returned is &lt;br /&gt;
			next seed.&lt;br /&gt;
&lt;br /&gt;
RESIZE(Variable, Expr)	Changes size (number of entries) in a global&lt;br /&gt;
			variable. Values are not maintained. Useful for &lt;br /&gt;
			when size is not known prior to simulation.&lt;br /&gt;
&lt;br /&gt;
RECOMPUTE	Only valid in consequent expressions of &lt;br /&gt;
			ProbInit and also when ProbInit recompute flag&lt;br /&gt;
			has been set. Causes prob. surface to be&lt;br /&gt;
			recomputed before next selection&lt;br /&gt;
===Output Expressions===&lt;br /&gt;
DISPLAY		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
&lt;br /&gt;
DISPLAY		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
Note: a label/expression pair can be “expanded” by using the form: Label#n1:n2: Expr, where n1 and n2 are integers or constant names. This will create n2-n1+1 columns rather than a single column. The system variable Index can be used in the expression, and will take on values n1, n1+1,…,n2 for each column, respectively.&lt;br /&gt;
&lt;br /&gt;
===Composite Functions===&lt;br /&gt;
Compound expressions all have the same form of an expression name followed by a list of sub-expressions.  If the first expression is a region function, then the subsequent expressions are all evaluated over the defined region, instead of only at the current cell (however, it is usually simpler to use an OVER REGION expression). When arithmetic expression become complex, sometimes composite expressions can be written more clearly. The general format is as follows:&lt;br /&gt;
&lt;br /&gt;
CompositeExpressionName&lt;br /&gt;
	Expr&lt;br /&gt;
	      :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
The following composite expressions are supported:&lt;br /&gt;
&lt;br /&gt;
===SUM===&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
Returns the number that is the sum of all the expressions.&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=SUM &lt;br /&gt;
       Expr&lt;br /&gt;
       ...  &lt;br /&gt;
     ENDFN&lt;br /&gt;
&lt;br /&gt;
REQUIRED ARGUMENTS: &lt;br /&gt;
Expr is any expression that evaluates to single numeric value.&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
the sum of all the arguments.&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
EXAMPLES: &amp;lt;add carriage return here&amp;gt;&lt;br /&gt;
Example 1:&lt;br /&gt;
   y = 3&lt;br /&gt;
   x = SUM  &lt;br /&gt;
         y  &lt;br /&gt;
         y+2  &lt;br /&gt;
         5  &lt;br /&gt;
       ENDFN &lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===PRODUCT===&lt;br /&gt;
	product of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
DIVIDE	successive division of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
MEAN		average of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
GEOMETRIC MEAN	geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
MIN		minimum of the sub-expressions &lt;br /&gt;
&lt;br /&gt;
MAX		maximum of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
EQUAL	TRUE (1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
NOT EQUAL	FALSE (0) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and TRUE (1) otherwise&lt;br /&gt;
&lt;br /&gt;
OR		TRUE (1) if at least one sub-expression&lt;br /&gt;
		evaluates to TRUE and FALSE (0) otherwise &lt;br /&gt;
&lt;br /&gt;
AND		TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
&lt;br /&gt;
LESS OR EQUAL	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;lt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
ORDERED	same as LESS OR EQUAL&lt;br /&gt;
&lt;br /&gt;
LESS THAN	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;lt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
STRICT ORDERED	same as LESS THAN&lt;br /&gt;
&lt;br /&gt;
GREATER OR EQUAL	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
GREATER THAN	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
===Region Functions===&lt;br /&gt;
A region function returns the set of locations, one on each call. Their use is limited to the main expression of EventLocation, SpreadLocation, AgentLocation and MoveLocation properties, as the first expression of composite expressions and in OVER REGION functions.&lt;br /&gt;
&lt;br /&gt;
REGION WHOLE MAP	defines the region consisting of the entire&lt;br /&gt;
	DECISION Expr	landscape. If there is a decision expression, &lt;br /&gt;
		then only those cells for which this expression &lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION RECT (Expr, Expr, Expr, Expr)	defines a rectangular region. If there is a&lt;br /&gt;
	DECISION Expr	decision expression defined, then only those&lt;br /&gt;
		cells for which this expression returns&lt;br /&gt;
		TRUE will be included&lt;br /&gt;
&lt;br /&gt;
REGION CENTRED (Expr, Expr [, DistanceType][, WRAPPED])&lt;br /&gt;
	DECISION Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
&lt;br /&gt;
REGION LOCATION LIST(Number+)	defines the region consisting of a set of &lt;br /&gt;
	DECISION Expr	known location indices. If there is a decision 		expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION LOCATION LIST(X,n)	defines the region consisting of a set of n&lt;br /&gt;
	DECISION Expr	location indices stored in one-dimensional X. &lt;br /&gt;
&lt;br /&gt;
REGION LOCATION (Expr)	defines the region consisting of a of a single&lt;br /&gt;
	DECISION Expr	location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION VECTOR (StartLocation, EndLocation)	defines region consisting of cells along an&lt;br /&gt;
	DECISION Expr	approximation of line between end cells&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
&lt;br /&gt;
REGION COST SURFACE(EndLocation, MaxCost, CostSurface)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
	COST Expr&lt;br /&gt;
REGION COST SURFACE(EndLocation, MaxCost, CostSurface, LeastCostNeighbs, AnchorLoc)&lt;br /&gt;
	DECISION Expr	&lt;br /&gt;
	COST Expr&lt;br /&gt;
		Defines a region surrounding a cell with &lt;br /&gt;
		cumulative costs less than MaxCost. Stops&lt;br /&gt;
		growing when EndLocation is reached or all&lt;br /&gt;
		costs are greater than MaxCost. Second form &lt;br /&gt;
		also records gradient and anchor location&lt;br /&gt;
		layers. The CostSurface layer records the&lt;br /&gt;
		cumulative cost from the cost function&lt;br /&gt;
&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
	COST Expr&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation, LeastCostNeighbs)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation, LeastCostNeighbs, AnchorLoc)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
		Defines a region with cells that approximate&lt;br /&gt;
		the least-cost path between two cells. The&lt;br /&gt;
		first generates the cost function internally.&lt;br /&gt;
		The latter two use input information from a&lt;br /&gt;
		pre-computed cost surface region. Providing &lt;br /&gt;
		both the gradient and anchor location layers &lt;br /&gt;
		provides the most accurate approximation.&lt;br /&gt;
&lt;br /&gt;
Iteration is a common aspect of models (even if it is very procedural). Most programming languages offer a “for-loop” of some kind. SELES presently provides “over index sequence” expressions as a slightly more declarative (although also more cumbersome) expression for iterating. While-loops can also be used.&lt;br /&gt;
&lt;br /&gt;
OVER INDEX SEQUENCE(Expr, Expr)	defines linear sequence of location indices. &lt;br /&gt;
	DECISION Expr	If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns &lt;br /&gt;
		TRUE will be included.  The system variable &lt;br /&gt;
		Index holds the value of the index at each value &lt;br /&gt;
		in the sequence&lt;br /&gt;
&lt;br /&gt;
Over region expressions are very frequently used to visit all cells in a landscape that meet some condition (e.g. to compute the size of the forest at initiation).&lt;br /&gt;
&lt;br /&gt;
OVER RegionFunction	Apply a set of sub-expressions at all spatial&lt;br /&gt;
   Expression	locations specified by a region function&lt;br /&gt;
	        :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
AT LOCATION #Expr	Apply a set of state-changes at a specified&lt;br /&gt;
   Expression	location&lt;br /&gt;
	:&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
===Matrix Functions===&lt;br /&gt;
Matrix assignment is indicated using “[=]” instead of “=”.  The proper dimensions of the component arrays must be met.&lt;br /&gt;
&lt;br /&gt;
Variable [=] Variable	assign variable of same dimension, or a &lt;br /&gt;
	single value to all entries&lt;br /&gt;
Variable [=] Variable + Variable	sum variables of same dimension (or with a &lt;br /&gt;
	constant)&lt;br /&gt;
Variable [=] Variable - Variable	subtract variables of same dimension (or&lt;br /&gt;
	with a constant)&lt;br /&gt;
Variable [=] Variable * Variable	matrix or scalar multiplication. &lt;br /&gt;
&lt;br /&gt;
Variable [=] TRANSPOSE(Variable)	matrix transposition&lt;br /&gt;
Variable [=] Variable^-1	invert a matrix&lt;br /&gt;
Variable = SUM(Variable)	sum all entries in a matrix&lt;br /&gt;
Variable [=] SUM ROWS (Variable)	sum all rows of a matrix (result has one&lt;br /&gt;
	value per column)&lt;br /&gt;
Variable [=] SUM COLS(Variable)	sum all columns of a matrix&lt;br /&gt;
&lt;br /&gt;
Variables [=] SORT(Variable, Expr)	sort rows of an input matrix where rank is &lt;br /&gt;
	given by Expr. The system variable “Index” &lt;br /&gt;
	can appear in the expression and will take on&lt;br /&gt;
	the range of indices in the input array. The &lt;br /&gt;
	resulting sorted matrix will be assigned.&lt;br /&gt;
&lt;br /&gt;
Variable [=] MPM_MULT(Variable, Variable)	Performs a “matrix population model” &lt;br /&gt;
	(MPM) integer-based multiplication. &lt;br /&gt;
	Assumes that first matrix is two-dimensional &lt;br /&gt;
	and that second is a vector. The result is &lt;br /&gt;
	two-dimensional, where entries above &lt;br /&gt;
	diagonal represent &amp;quot;offspring&amp;quot;, entries on the&lt;br /&gt;
	diagonal represent &amp;quot;survivors&amp;quot; and entries &lt;br /&gt;
	below the diagonal represent &amp;quot;succeeders&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Variable [=] CONTAG(Variable, Variable)	Creates a “temporal contagion” matrix. &lt;br /&gt;
	Given probabilities (first parameter) for a set&lt;br /&gt;
	of states and a two-dimensional contagion &lt;br /&gt;
	array (values –1 to 1 indicating affinity), &lt;br /&gt;
	generates a matrix where each row is a prob. &lt;br /&gt;
	dist. For transitions given the row value, and &lt;br /&gt;
	the overall target dist. will be met.&lt;br /&gt;
&lt;br /&gt;
===General Set, List and Graph Functions===&lt;br /&gt;
REMOVE ALL(LinkedVariable)	clears variable. No return value&lt;br /&gt;
SIZE(LinkedVariable)	number of elements, entries or nodes&lt;br /&gt;
IS EMPTY(LinkedVariable)	TRUE if and only if variable has 0 elements&lt;br /&gt;
&lt;br /&gt;
FIRST(LinkedVariable)	returns position of first element, entry or&lt;br /&gt;
	node&lt;br /&gt;
NEXT(LinkedVariable, PosVariable)	returns position of element, entry or node &lt;br /&gt;
	following position provided&lt;br /&gt;
PREV(LinkedVariable, PosVariable)	returns position of element, entry or node &lt;br /&gt;
	preceding position provided&lt;br /&gt;
REMOVE(LinkedVariable, PosVariable)	remove and deletes element, entry or node &lt;br /&gt;
	at position&lt;br /&gt;
&lt;br /&gt;
Variable [=] GET(LinkedVariable, PosVariable)	get element, entry or node at position&lt;br /&gt;
X [=] GET(LinkedVariable, PosVariable, Index)	get single value in a given index&lt;br /&gt;
SET(LinkedVariable, PosVariable, Variable)	set element, entry or node at position&lt;br /&gt;
SET(LinkedVariable, PosVariable, entryIndex, Value)&lt;br /&gt;
	set value at specified index of element,&lt;br /&gt;
	entry or node at position&lt;br /&gt;
FIND(LinkedVariable, , TmpVariable Condition)	return first position of an element, entry or&lt;br /&gt;
	node that satisfies the condition&lt;br /&gt;
FIND NEXT(LinkedVariable, PosVariable, TmpVariable, Condition)	&lt;br /&gt;
	return next position of an element, entry or&lt;br /&gt;
	node that satisfies the condition&lt;br /&gt;
SORT(LinkedVariable, TmpVariable1, TmpVariable2, Condition)&lt;br /&gt;
	sort elements, entries or nodes according to &lt;br /&gt;
	condition&lt;br /&gt;
&lt;br /&gt;
===Set Functions===&lt;br /&gt;
CONTAINS(SetVariable, ElementVariable)	TRUE if and only if set variable “contains” &lt;br /&gt;
	variable provided, where two elements are &lt;br /&gt;
	identical if they have identical values&lt;br /&gt;
INSERT(SetVariable, ElementVariable)	add element to set. Only changes set if it &lt;br /&gt;
	doesn’t already contain the element&lt;br /&gt;
SetVariable = UNION(Set1, Set2)	take union of two set variables&lt;br /&gt;
SetVariable = INTERSECTION(Sete1, Set2)	take intersection of two set variables&lt;br /&gt;
SetVariable = SUBTRACT(Sete1, Set2)	subtract second set variable from first&lt;br /&gt;
&lt;br /&gt;
===List Functions===&lt;br /&gt;
HEAD(ListVariable)	returns position of first entry&lt;br /&gt;
TAIL(ListVariable)	returns position of last entry&lt;br /&gt;
INSERT HEAD(ListVariable, EntryElement)	add an entry to front of list&lt;br /&gt;
INSERT TAIL(ListVariable, EntryElement)	add an entry to end of list&lt;br /&gt;
INSERT BEFORE(ListVariable, Index, EntryElement)&lt;br /&gt;
	add an entry before given index&lt;br /&gt;
INSERT AFTER(ListVariable, Index, EntryElement)&lt;br /&gt;
	add an entry after given index&lt;br /&gt;
INSERT AT(ListVariable, Index, EntryElement)	add an entry at given index&lt;br /&gt;
&lt;br /&gt;
REMOVE HEAD(ListVariable)	removes and deletes first entry&lt;br /&gt;
REMOVE TAIL (ListVariable)	removes and deletes last entry&lt;br /&gt;
REMOVE AT INDEX(ListVariable, Index)	removes and deletes entry at given index&lt;br /&gt;
&lt;br /&gt;
Variable [=] GET HEAD(ListVariable)	returns first entry&lt;br /&gt;
Variable [=] GET TAIL(ListVariable)	returns first entry&lt;br /&gt;
Variable [=] GET AT INDEX(ListVariable, Index)	returns entry at given index&lt;br /&gt;
Pos = POS AT INDEX(ListVariable, Index)	returns position at given index&lt;br /&gt;
&lt;br /&gt;
===Tree Functions===&lt;br /&gt;
ADD ROOT(TreeVariable, EntryElement)	add root element of a tree&lt;br /&gt;
INSERT LEFT CHILD(TreeVariable, PosVariable, EntryElement)&lt;br /&gt;
	add child to a node on the left of current&lt;br /&gt;
	children&lt;br /&gt;
INSERT RIGHT CHILD(TreeVariable, PosVariable, EntryElement)&lt;br /&gt;
	add child to a node on the right of current&lt;br /&gt;
	children&lt;br /&gt;
INSERT CHILD(TreeVariable, PosVariable, EntryElement, Index)&lt;br /&gt;
	add child to a node at given index (from&lt;br /&gt;
	left)&lt;br /&gt;
&lt;br /&gt;
n = CHILDREN(TreeVariable, PosVariable)	number of children at a given position&lt;br /&gt;
Pos = PARENT(TreeVariable, PosVariable)	Position of parent of a node&lt;br /&gt;
Pos = LEFT CHILD(TreeVariable, PosVariable)	Position of leftmost child of a node&lt;br /&gt;
Pos = RIGHT CHILD(TreeVariable, PosVariable)	Position of rightmost child of a node&lt;br /&gt;
Pos = CHILD(TreeVariable, PosVariable, Index)	Position of indexed (from left) child of a &lt;br /&gt;
	node&lt;br /&gt;
Pos = NEXT SIBLING(TreeVariable, PosVariable)	Position of next sibling to right of a node&lt;br /&gt;
Pos = PREV SIBLING(TreeVariable, PosVariable)	Position of previous  sibling to right of a &lt;br /&gt;
node&lt;br /&gt;
&lt;br /&gt;
Pos = NEXT DFS(TreeVariable, PosVariable)	Position of next node in depth-first&lt;br /&gt;
	pre-order traversal of a tree. If the position&lt;br /&gt;
	variable is NULL, then the root is returned&lt;br /&gt;
Pos = NEXT POSTORDER DFS(TreeVariable, PosVariable)&lt;br /&gt;
	Position of next node in depth-first&lt;br /&gt;
	post-order traversal of a tree. If the position&lt;br /&gt;
	variable is NULL, then the root is returned&lt;br /&gt;
Variable [=] GET LEFT CHILD(TreeVariable, PosVariable)&lt;br /&gt;
	returns entry of leftmost child for a given&lt;br /&gt;
	node&lt;br /&gt;
Variable [=] GET RIGHT CHILD(TreeVariable, PosVariable)&lt;br /&gt;
	returns entry of rightmost child for a given&lt;br /&gt;
	node&lt;br /&gt;
Variable [=] GET CHILD(TreeVariable, PosVariable, Index)&lt;br /&gt;
	returns entry of child with given index&lt;br /&gt;
	(from left) for a given node&lt;br /&gt;
&lt;br /&gt;
===Graph Functions===&lt;br /&gt;
REMOVE ALL LINKS(GraphVariable) 	clears links of a graph variable&lt;br /&gt;
SIZE LINKS(GraphVariable)	number of links in graph&lt;br /&gt;
IS EMPTY LINKS(GraphVariable)	TRUE if and only if graph has 0 links&lt;br /&gt;
&lt;br /&gt;
FIRST LINK(GraphVariable)	returns position of first link&lt;br /&gt;
NEXT LINK (GraphVariable, PosVariable)	returns position of link following position&lt;br /&gt;
	provided&lt;br /&gt;
PREV LINK (GraphVariable, PosVariable)	returns position of link preceding position&lt;br /&gt;
	provided&lt;br /&gt;
Variable [=] GET LINK(GraphVariable, PosVariable)&lt;br /&gt;
	get link at position&lt;br /&gt;
CONTAINS LINK(GraphVariable, LinkVariable)	TRUE if and only if graph variable contains &lt;br /&gt;
	variable provided&lt;br /&gt;
REMOVE LINK(GraphVariable, PosVariable)	remove and deletes link at position&lt;br /&gt;
SET LINK(GraphVariable, PosVariable, LinkVariable)&lt;br /&gt;
	 Set link at position&lt;br /&gt;
SET LINK(GraphVariable, PosVariable, entryIndex, Value)&lt;br /&gt;
	Set value at specified index of link at&lt;br /&gt;
	position&lt;br /&gt;
FIND LINK(GraphVariable, TmpVariable, Condition)&lt;br /&gt;
	Return first position of link that satisfies the&lt;br /&gt;
	condition&lt;br /&gt;
FIND NEXT LINK(GraphVariable, PosVariable, TmpVariable, Condition)&lt;br /&gt;
	Return next position of a link that satisfies &lt;br /&gt;
	the condition&lt;br /&gt;
SORT LINKS(GraphVariable, TmpVariable1, TmpVariable2, Condition)&lt;br /&gt;
	Sort links according to condition&lt;br /&gt;
LINKED(GraphVariable, NodeVariable1, NodeVariable2, LinkType)&lt;br /&gt;
	TRUE if the nodes are linked. Set LinkType &lt;br /&gt;
	to 0 for direct links and 1 for indirect&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference&amp;diff=2000</id>
		<title>Language Reference</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference&amp;diff=2000"/>
		<updated>2006-10-03T14:29:50Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: /* Probability Density and Cumulative Density Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Constants==&lt;br /&gt;
===ZERO===&lt;br /&gt;
	return 0.0&lt;br /&gt;
===ONE===&lt;br /&gt;
	return 1.0&lt;br /&gt;
#Number	return value of the number specified&lt;br /&gt;
&amp;lt;Constant&amp;gt;	return value of a named constant&lt;br /&gt;
&amp;lt;Constant&amp;gt;[Expr]	return value of a named vector constant&lt;br /&gt;
&amp;lt;Constant&amp;gt;[Expr, Expr]	return value of a named array constant&lt;br /&gt;
&amp;lt;Macro&amp;gt;[Expr]	return value of expression at specified index&lt;br /&gt;
	in macro&lt;br /&gt;
&lt;br /&gt;
==Probability Distributions==&lt;br /&gt;
===NORMAL===&lt;br /&gt;
(Expr, Expr)	draw a value from a normal distribution, where&lt;br /&gt;
	the first expression specifies the mean and&lt;br /&gt;
	the second specifies the standard deviation&lt;br /&gt;
&lt;br /&gt;
===SKEWED NORMAL===&lt;br /&gt;
(Expr, Expr, Expr)	draw a value from a skewed normal distribution, 	where the first expression specifies the mode &lt;br /&gt;
	and the second and third specify the standard &lt;br /&gt;
	deviations to the left and right of the mode &lt;br /&gt;
LOG NORMAL(Expr, Expr)	draw a value from a log normal distribution,&lt;br /&gt;
	where the first expression specifies the mean&lt;br /&gt;
	and the second specifies the standard deviation &lt;br /&gt;
	of the underlying normal distribution&lt;br /&gt;
&lt;br /&gt;
WEIBULL(Expr, Expr) 	draw a value from a Weibull distribution, where&lt;br /&gt;
	the first expression specifies the beta and the&lt;br /&gt;
	second specifies alpha (Note:terminology varies&lt;br /&gt;
	between sources. The version here is equivalent&lt;br /&gt;
	to that in Excel, with reversal of parameters).&lt;br /&gt;
&lt;br /&gt;
NEGEXP(Expr)	draw a value from a negative exponential 	distribution, where the expression specifies the&lt;br /&gt;
	mean&lt;br /&gt;
 POISSION(Expr)	draw a value from a Poisson distribution&lt;br /&gt;
&lt;br /&gt;
UNIFORM(Expr, Expr)	draw a value from a uniform distribution, where 	the first expression determines the minimum	 	value and the second determines the maximum &lt;br /&gt;
CLASSIFIED_DIST	draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST	in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST[M]	In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
&lt;br /&gt;
===Probability Density and Cumulative Density Functions===&lt;br /&gt;
The following are a set of probability and cumulative density expressions. The results from probability density expressions should be multiplied by a width factor to obtain a probability of value X (i.e. the estimated area under the PDF curve). Without a width factor, the assumed class size is 1. A temporal PDF makes a PDF conditional, where the variable X is assumed to be a time or other increasing value. Essentially, a PDF will give the probability of value X occurring, while a TEMPORAL PDF will give the probability of X occurring given that if hasn’t occurred yet (i.e. given that that actual value of this variable will be &amp;gt;= X).&lt;br /&gt;
&lt;br /&gt;
NORMAL PDF(Expr, Expr, Expr)	normal probability density function, where the 			first expression is the value, the second is the  			mean and the third is the standard deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
NORMAL CDF(Expr, Expr, Expr)	normal cumulative density function, where the 			first expression is the value, the second is the			mean and the third is the standard deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL PDF(Expr, Expr, Expr, Expr)	skewed normal probability density function,&lt;br /&gt;
	where the first expression specifies the value,&lt;br /&gt;
	the second is the mode and the third and fourth	are the standard deviations to the left and right&lt;br /&gt;
	of the mode. &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL CDF(Expr, Expr, Expr, Expr)	skewed normal cumulative density function, 			where the first expression specifies the value, &lt;br /&gt;
			the second is the mode, and the third and fourth 			are the left and right standard deviations&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL PDF(Expr, Expr, Expr)	log normal probability density function, where&lt;br /&gt;
			the first expression specifies the value, the&lt;br /&gt;
			second is the mean and the third is the standard &lt;br /&gt;
			deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL CDF(Expr, Expr, Expr)	log normal cumulative density function, where&lt;br /&gt;
			the first expression specifies the value, the &lt;br /&gt;
			second is the mean and the third is the standard &lt;br /&gt;
			deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
NORMAL TEMPORAL PDF(Expr, Expr, Expr) 	temporal normal probability density function &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL TEMPORAL PDF(Expr, Expr, Expr, Expr)&lt;br /&gt;
			temporal skewed normal probability density &lt;br /&gt;
			function&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL TEMPORAL PDF(Expr, Expr, Expr)  temporal log normal probability density&lt;br /&gt;
			function &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
UNIFORM TEMPORAL PDF(Expr, Expr, Expr)	temporal uniform probability density expression&lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Arithmetic Functions)===&lt;br /&gt;
&amp;lt;Variable&amp;gt;	value of an independent variable &amp;lt;Variable&amp;gt;[Expr]	value of a vector global variable&lt;br /&gt;
&amp;lt;Variable&amp;gt;[Expr, Expr]	value of an array global variable&lt;br /&gt;
&lt;br /&gt;
(Expr)	value of the expression Expr + Expr	sum of two expressions Expr - Expr	value of the first expression minus the value&lt;br /&gt;
	of the second expression Expr * Expr	product of two expressions Expr / Expr	value of the first expression divided by value&lt;br /&gt;
	of the second expression  Expr ^ Expr	value of the first expression to the power of&lt;br /&gt;
	the value of the second expression. An nth&lt;br /&gt;
	root can be computed with1/n as the power.&lt;br /&gt;
| Expr |	absolute value of the expression &lt;br /&gt;
ABS(Expr)	absolute value of the expression &lt;br /&gt;
ABSOLUTE(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
Expr % Expr	value of the first expression modulo the value of&lt;br /&gt;
	the second expression (assumes that the values&lt;br /&gt;
	of the expressions are integers)&lt;br /&gt;
EXP(Expr)	base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
LOG(Expr)	natural logarithm of the value of the expression.&lt;br /&gt;
	Logarithms in other bases can be computed as&lt;br /&gt;
	logb(x) = ln(x) / ln(b)&lt;br /&gt;
&lt;br /&gt;
ROUND(Expr)	expression value rounded to the nearest integer&lt;br /&gt;
FLOOR(Expr)		largest integer smaller than the expression value&lt;br /&gt;
CEILING(Expr)	smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
CLAMP(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Trigonometric Functions)===&lt;br /&gt;
Angles are all assumed to be in degrees (not radians). In SELES, angles in compass directions (i.e. zero is north, increasing clockwise, in contrast to geometry where zero is each increasing counter-clockwise).&lt;br /&gt;
SIN(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return sin(theta)&lt;br /&gt;
COS(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta)&lt;br /&gt;
TAN(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return tan(theta).&lt;br /&gt;
ARCSIN(Expr)	inverse sine of the value of the expression&lt;br /&gt;
ARCCOS(Expr)	inverse cos of the value of the expression&lt;br /&gt;
ARCTAN(Expr)	inverse tan of the value of the expression&lt;br /&gt;
ARCTAN(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Miscellaneous)===&lt;br /&gt;
RESPONSE(Expr, #A, #B, #C)	two-sided version of a standard response &lt;br /&gt;
function for the value X of the first expression: &lt;br /&gt;
if (X &amp;lt; A) return e^(-(X-A)^2/(2*(C^2))&lt;br /&gt;
			else if (X &amp;gt; B) return e^(-(X-B)^2/(2*(C^2))&lt;br /&gt;
			else return 1&lt;br /&gt;
&lt;br /&gt;
DISTANCE(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
&lt;br /&gt;
DIRECTION(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
&lt;br /&gt;
===Classified and Discrete Functions===&lt;br /&gt;
CLASSIFY(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	return an interpolated value where the value of&lt;br /&gt;
	CLASS Number: Number	variable X is placed between two classes or at&lt;br /&gt;
 	   :	either end of the table.&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): ( Number+)	same as above, except the classes are&lt;br /&gt;
		implicitly 0, …. k-1&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	same as above, except the values in the&lt;br /&gt;
	CLASS Number: Expr	table are obtained by evaluating expressions&lt;br /&gt;
	   :				&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	same as above, except the classes are &lt;br /&gt;
Expr	implicitly 0, …, k-1&lt;br /&gt;
   :					&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file.&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	return the interpolated value where the value of&lt;br /&gt;
	CLASS Number: Number	variable X is placed between two classes or at&lt;br /&gt;
 	   :	either end of the table, and classes can be any.&lt;br /&gt;
ENDFN	real values.&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): ( Number+)	same as above, except the classes are&lt;br /&gt;
		implicitly 0, …. k-1&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	same as above, except the values in the&lt;br /&gt;
	CLASS Number: Expr	table are obtained by evaluating expressions&lt;br /&gt;
	   :				&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	same as above, except the classes are &lt;br /&gt;
Expr	implicitly 0, …, k-1&lt;br /&gt;
   :					&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table&lt;br /&gt;
		file &lt;br /&gt;
&lt;br /&gt;
===Boolean Functions===&lt;br /&gt;
Expr EQ Expr	TRUE if the values of the two expressions are&lt;br /&gt;
		equal; otherwise FALSE&lt;br /&gt;
Expr == Expr	alternate form of EQ comparison (Note: two equal signs distinguish this from an assignment)&lt;br /&gt;
&lt;br /&gt;
Expr NEQ Expr	TRUE if the values are not equal; otherwise&lt;br /&gt;
		FALSE&lt;br /&gt;
Expr != Expr	alternate form of NOT EQUAL comparison&lt;br /&gt;
&lt;br /&gt;
Expr &amp;lt; Expr	TRUE if the value of the first expression is less&lt;br /&gt;
		than the value of the second expression;&lt;br /&gt;
		otherwise FALSE&lt;br /&gt;
Expr &amp;lt;= Expr	TRUE if the value of the first expression is less&lt;br /&gt;
		than or equal to the value of the second&lt;br /&gt;
		expression; otherwise FALSE&lt;br /&gt;
&lt;br /&gt;
Expr &amp;gt; Expr	TRUE if the value of the first expression is&lt;br /&gt;
		greater than the value of the second &lt;br /&gt;
		expression; otherwise FALSE&lt;br /&gt;
Expr &amp;gt;= Expr	TRUE if the value of the first expression is&lt;br /&gt;
		greater than or equal to the value of the &lt;br /&gt;
		second expression; otherwise FALSE&lt;br /&gt;
&lt;br /&gt;
!Expr		Negates the expression Boolean value&lt;br /&gt;
&lt;br /&gt;
Expr AND Expr	TRUE if values of both expressions are&lt;br /&gt;
		TRUE and FALSE otherwise&lt;br /&gt;
&lt;br /&gt;
Expr OR Expr	TRUE if value of at least one expression is&lt;br /&gt;
		TRUE and FALSE otherwise&lt;br /&gt;
&lt;br /&gt;
Note that relations can be cascaded, with the interpretation that each operator applies independently to its surrounding pair of expressions. Thus, the expression: Expression &amp;lt;= Expression &amp;lt;= Expression (e.g. 5 &amp;lt;= age &amp;lt;= 50) specifies a “between” relation, which is TRUE only if the value of the centre expression falls in the specified range.&lt;br /&gt;
&lt;br /&gt;
===Bit-Vector Functions===&lt;br /&gt;
Bit-vector functions treat an integer value (the independent variable) as a sequence of bits, each of which can be independently set and accessed. This can allow use of a single layer to hold lots of Boolean information, since each cell as an integer has 8, 16 or 32 bits. For example, bits 0, 1, 2 and 3 can be used to store four different Boolean states (a, b, c and d), and the sequence 0110 means that states a and d are FALSE and states b and c are TRUE. PositionList is a semi-colon separated sequence of integer or ranges (lower-upper) indicating positions in the integer (0-31). For example, the PositionList 1;4-6;27 indicates bits at positions 1, 4, 5, 6 and 27.&lt;br /&gt;
&lt;br /&gt;
SETAT(Expr, PositionList, #Type)	Set the value specified by the expression, at &lt;br /&gt;
		the positions in PositionList to: FALSE (0) &lt;br /&gt;
		if Type is 0, TRUE (1) if Type is 1,&lt;br /&gt;
		and flip the bits if Type = 2&lt;br /&gt;
&lt;br /&gt;
SETAT(Expr, PositionList,#Type,#Prob)	Same as above, except each position is set&lt;br /&gt;
		with probability #Prob&lt;br /&gt;
&lt;br /&gt;
SELECTAT(Expr, PositionList)	FALSE(0) if none of the bits in PositionList are&lt;br /&gt;
		set in the specified expression value and&lt;br /&gt;
		TRUE(1) otherwise&lt;br /&gt;
&lt;br /&gt;
MAX POSITION(Expr)	Return the maximum 0-based bit position that is &lt;br /&gt;
		set to one in the expression  value (interpreted &lt;br /&gt;
		as a bit-vector), or –1 if no bits are set&lt;br /&gt;
&lt;br /&gt;
MIN POSITION(Expr)	Return the minimum 0-based bit position that is &lt;br /&gt;
		set to one in the expression  value (interpreted &lt;br /&gt;
		as a bit-vector), or –1 if no bits are set&lt;br /&gt;
&lt;br /&gt;
BITWISE OR(Expr, Expr)	Bitwise OR of two values&lt;br /&gt;
BITWISE AND(Expr, Expr)	Bitwise AND of two values&lt;br /&gt;
BITWISE XOR(Expr, Expr)	Bitwise exclusive-OR of two values&lt;br /&gt;
BITWISE NOT Expr	Bitwise NOT of a value&lt;br /&gt;
&lt;br /&gt;
SHIFT LEFT(Expr, Expr)	Shifts value of first expression to the left by &lt;br /&gt;
		number of bits specified by second expression&lt;br /&gt;
SHIFT RIGHT(Expr, Expr)	Shifts value of first expression to the right by &lt;br /&gt;
		number of bits specified by second expression&lt;br /&gt;
&lt;br /&gt;
===Control Expressions===&lt;br /&gt;
Note the difference between the first two “functional if’s” (i.e. a value is returned) and the latter “procedural if’s” (that don’t return a value, but control flow).&lt;br /&gt;
&lt;br /&gt;
IF Expr THEN Expr ELSE Expr	if value of the IF expression is TRUE (&amp;gt;= 1), 	then return the value of the THEN expression,&lt;br /&gt;
	otherwise return value of the ELSE expression&lt;br /&gt;
&lt;br /&gt;
(Expr ? Expr : Expr)	Same as above, but this form can be used as an&lt;br /&gt;
	embedded sub-expression.&lt;br /&gt;
&lt;br /&gt;
IF Expr	Procedural IF statement to process&lt;br /&gt;
 …	sub-expressions denoted by “…” only if the &lt;br /&gt;
ENDFN	expression evaluates to TRUE&lt;br /&gt;
&lt;br /&gt;
IF Expr	Procedural IF statement to process the first set&lt;br /&gt;
 …	of sub-expressions denoted by “…”if the &lt;br /&gt;
ELSE	expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together&lt;br /&gt;
&lt;br /&gt;
WHILE Expr	While loop: process sub-expressions denoted by&lt;br /&gt;
 …	 “…” while the expression evaluates to TRUE&lt;br /&gt;
ENDFN	&lt;br /&gt;
&lt;br /&gt;
PAUSE		Halts the simulation and displays a dialog&lt;br /&gt;
			box to which the user must respond to continue&lt;br /&gt;
&lt;br /&gt;
PAUSE IF Expr	If the expression evaluates to TRUE, halts the &lt;br /&gt;
			simulation and displays a dialog box to which &lt;br /&gt;
			the user must respond to continue&lt;br /&gt;
&lt;br /&gt;
PAUSE(#Value)	Pauses the simulation for the specified number&lt;br /&gt;
			of milliseconds and then continues&lt;br /&gt;
&lt;br /&gt;
PAUSE(#Value) IF Expr	If the expression evaluates to TRUE, Pauses the &lt;br /&gt;
			simulation for the specified number of &lt;br /&gt;
			milliseconds and then continues&lt;br /&gt;
&lt;br /&gt;
WAIT UNTIL Expr	Suspend execution until the expression returns 			TRUE (1). This is intended for controlling&lt;br /&gt;
			communication and synchronization with&lt;br /&gt;
			an external application. &lt;br /&gt;
CRITICAL SECTION (Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).&lt;br /&gt;
&lt;br /&gt;
DEBUG		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.&lt;br /&gt;
&lt;br /&gt;
SEED()		Gets the random number seed&lt;br /&gt;
SEED(Expr)		Sets the random number seed. Value returned is &lt;br /&gt;
			next seed.&lt;br /&gt;
&lt;br /&gt;
RESIZE(Variable, Expr)	Changes size (number of entries) in a global&lt;br /&gt;
			variable. Values are not maintained. Useful for &lt;br /&gt;
			when size is not known prior to simulation.&lt;br /&gt;
&lt;br /&gt;
RECOMPUTE	Only valid in consequent expressions of &lt;br /&gt;
			ProbInit and also when ProbInit recompute flag&lt;br /&gt;
			has been set. Causes prob. surface to be&lt;br /&gt;
			recomputed before next selection&lt;br /&gt;
===Output Expressions===&lt;br /&gt;
DISPLAY		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
&lt;br /&gt;
DISPLAY		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
Note: a label/expression pair can be “expanded” by using the form: Label#n1:n2: Expr, where n1 and n2 are integers or constant names. This will create n2-n1+1 columns rather than a single column. The system variable Index can be used in the expression, and will take on values n1, n1+1,…,n2 for each column, respectively.&lt;br /&gt;
&lt;br /&gt;
===Composite Functions===&lt;br /&gt;
Compound expressions all have the same form of an expression name followed by a list of sub-expressions.  If the first expression is a region function, then the subsequent expressions are all evaluated over the defined region, instead of only at the current cell (however, it is usually simpler to use an OVER REGION expression). When arithmetic expression become complex, sometimes composite expressions can be written more clearly. The general format is as follows:&lt;br /&gt;
&lt;br /&gt;
CompositeExpressionName&lt;br /&gt;
	Expr&lt;br /&gt;
	      :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
The following composite expressions are supported:&lt;br /&gt;
&lt;br /&gt;
===SUM===&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
Returns the number that is the sum of all the expressions.&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=SUM &lt;br /&gt;
       Expr&lt;br /&gt;
       ...  &lt;br /&gt;
     ENDFN&lt;br /&gt;
&lt;br /&gt;
REQUIRED ARGUMENTS: &lt;br /&gt;
Expr is any expression that evaluates to single numeric value.&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
the sum of all the arguments.&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
EXAMPLES: &amp;lt;add carriage return here&amp;gt;&lt;br /&gt;
Example 1:&lt;br /&gt;
   y = 3&lt;br /&gt;
   x = SUM  &lt;br /&gt;
         y  &lt;br /&gt;
         y+2  &lt;br /&gt;
         5  &lt;br /&gt;
       ENDFN &lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===PRODUCT===&lt;br /&gt;
	product of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
DIVIDE	successive division of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
MEAN		average of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
GEOMETRIC MEAN	geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
MIN		minimum of the sub-expressions &lt;br /&gt;
&lt;br /&gt;
MAX		maximum of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
EQUAL	TRUE (1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
NOT EQUAL	FALSE (0) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and TRUE (1) otherwise&lt;br /&gt;
&lt;br /&gt;
OR		TRUE (1) if at least one sub-expression&lt;br /&gt;
		evaluates to TRUE and FALSE (0) otherwise &lt;br /&gt;
&lt;br /&gt;
AND		TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
&lt;br /&gt;
LESS OR EQUAL	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;lt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
ORDERED	same as LESS OR EQUAL&lt;br /&gt;
&lt;br /&gt;
LESS THAN	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;lt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
STRICT ORDERED	same as LESS THAN&lt;br /&gt;
&lt;br /&gt;
GREATER OR EQUAL	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
GREATER THAN	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
===Region Functions===&lt;br /&gt;
A region function returns the set of locations, one on each call. Their use is limited to the main expression of EventLocation, SpreadLocation, AgentLocation and MoveLocation properties, as the first expression of composite expressions and in OVER REGION functions.&lt;br /&gt;
&lt;br /&gt;
REGION WHOLE MAP	defines the region consisting of the entire&lt;br /&gt;
	DECISION Expr	landscape. If there is a decision expression, &lt;br /&gt;
		then only those cells for which this expression &lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION RECT (Expr, Expr, Expr, Expr)	defines a rectangular region. If there is a&lt;br /&gt;
	DECISION Expr	decision expression defined, then only those&lt;br /&gt;
		cells for which this expression returns&lt;br /&gt;
		TRUE will be included&lt;br /&gt;
&lt;br /&gt;
REGION CENTRED (Expr, Expr [, DistanceType][, WRAPPED])&lt;br /&gt;
	DECISION Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
&lt;br /&gt;
REGION LOCATION LIST(Number+)	defines the region consisting of a set of &lt;br /&gt;
	DECISION Expr	known location indices. If there is a decision 		expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION LOCATION LIST(X,n)	defines the region consisting of a set of n&lt;br /&gt;
	DECISION Expr	location indices stored in one-dimensional X. &lt;br /&gt;
&lt;br /&gt;
REGION LOCATION (Expr)	defines the region consisting of a of a single&lt;br /&gt;
	DECISION Expr	location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION VECTOR (StartLocation, EndLocation)	defines region consisting of cells along an&lt;br /&gt;
	DECISION Expr	approximation of line between end cells&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
&lt;br /&gt;
REGION COST SURFACE(EndLocation, MaxCost, CostSurface)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
	COST Expr&lt;br /&gt;
REGION COST SURFACE(EndLocation, MaxCost, CostSurface, LeastCostNeighbs, AnchorLoc)&lt;br /&gt;
	DECISION Expr	&lt;br /&gt;
	COST Expr&lt;br /&gt;
		Defines a region surrounding a cell with &lt;br /&gt;
		cumulative costs less than MaxCost. Stops&lt;br /&gt;
		growing when EndLocation is reached or all&lt;br /&gt;
		costs are greater than MaxCost. Second form &lt;br /&gt;
		also records gradient and anchor location&lt;br /&gt;
		layers. The CostSurface layer records the&lt;br /&gt;
		cumulative cost from the cost function&lt;br /&gt;
&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
	COST Expr&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation, LeastCostNeighbs)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation, LeastCostNeighbs, AnchorLoc)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
		Defines a region with cells that approximate&lt;br /&gt;
		the least-cost path between two cells. The&lt;br /&gt;
		first generates the cost function internally.&lt;br /&gt;
		The latter two use input information from a&lt;br /&gt;
		pre-computed cost surface region. Providing &lt;br /&gt;
		both the gradient and anchor location layers &lt;br /&gt;
		provides the most accurate approximation.&lt;br /&gt;
&lt;br /&gt;
Iteration is a common aspect of models (even if it is very procedural). Most programming languages offer a “for-loop” of some kind. SELES presently provides “over index sequence” expressions as a slightly more declarative (although also more cumbersome) expression for iterating. While-loops can also be used.&lt;br /&gt;
&lt;br /&gt;
OVER INDEX SEQUENCE(Expr, Expr)	defines linear sequence of location indices. &lt;br /&gt;
	DECISION Expr	If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns &lt;br /&gt;
		TRUE will be included.  The system variable &lt;br /&gt;
		Index holds the value of the index at each value &lt;br /&gt;
		in the sequence&lt;br /&gt;
&lt;br /&gt;
Over region expressions are very frequently used to visit all cells in a landscape that meet some condition (e.g. to compute the size of the forest at initiation).&lt;br /&gt;
&lt;br /&gt;
OVER RegionFunction	Apply a set of sub-expressions at all spatial&lt;br /&gt;
   Expression	locations specified by a region function&lt;br /&gt;
	        :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
AT LOCATION #Expr	Apply a set of state-changes at a specified&lt;br /&gt;
   Expression	location&lt;br /&gt;
	:&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
===Matrix Functions===&lt;br /&gt;
Matrix assignment is indicated using “[=]” instead of “=”.  The proper dimensions of the component arrays must be met.&lt;br /&gt;
&lt;br /&gt;
Variable [=] Variable	assign variable of same dimension, or a &lt;br /&gt;
	single value to all entries&lt;br /&gt;
Variable [=] Variable + Variable	sum variables of same dimension (or with a &lt;br /&gt;
	constant)&lt;br /&gt;
Variable [=] Variable - Variable	subtract variables of same dimension (or&lt;br /&gt;
	with a constant)&lt;br /&gt;
Variable [=] Variable * Variable	matrix or scalar multiplication. &lt;br /&gt;
&lt;br /&gt;
Variable [=] TRANSPOSE(Variable)	matrix transposition&lt;br /&gt;
Variable [=] Variable^-1	invert a matrix&lt;br /&gt;
Variable = SUM(Variable)	sum all entries in a matrix&lt;br /&gt;
Variable [=] SUM ROWS (Variable)	sum all rows of a matrix (result has one&lt;br /&gt;
	value per column)&lt;br /&gt;
Variable [=] SUM COLS(Variable)	sum all columns of a matrix&lt;br /&gt;
&lt;br /&gt;
Variables [=] SORT(Variable, Expr)	sort rows of an input matrix where rank is &lt;br /&gt;
	given by Expr. The system variable “Index” &lt;br /&gt;
	can appear in the expression and will take on&lt;br /&gt;
	the range of indices in the input array. The &lt;br /&gt;
	resulting sorted matrix will be assigned.&lt;br /&gt;
&lt;br /&gt;
Variable [=] MPM_MULT(Variable, Variable)	Performs a “matrix population model” &lt;br /&gt;
	(MPM) integer-based multiplication. &lt;br /&gt;
	Assumes that first matrix is two-dimensional &lt;br /&gt;
	and that second is a vector. The result is &lt;br /&gt;
	two-dimensional, where entries above &lt;br /&gt;
	diagonal represent &amp;quot;offspring&amp;quot;, entries on the&lt;br /&gt;
	diagonal represent &amp;quot;survivors&amp;quot; and entries &lt;br /&gt;
	below the diagonal represent &amp;quot;succeeders&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Variable [=] CONTAG(Variable, Variable)	Creates a “temporal contagion” matrix. &lt;br /&gt;
	Given probabilities (first parameter) for a set&lt;br /&gt;
	of states and a two-dimensional contagion &lt;br /&gt;
	array (values –1 to 1 indicating affinity), &lt;br /&gt;
	generates a matrix where each row is a prob. &lt;br /&gt;
	dist. For transitions given the row value, and &lt;br /&gt;
	the overall target dist. will be met.&lt;br /&gt;
&lt;br /&gt;
===General Set, List and Graph Functions===&lt;br /&gt;
REMOVE ALL(LinkedVariable)	clears variable. No return value&lt;br /&gt;
SIZE(LinkedVariable)	number of elements, entries or nodes&lt;br /&gt;
IS EMPTY(LinkedVariable)	TRUE if and only if variable has 0 elements&lt;br /&gt;
&lt;br /&gt;
FIRST(LinkedVariable)	returns position of first element, entry or&lt;br /&gt;
	node&lt;br /&gt;
NEXT(LinkedVariable, PosVariable)	returns position of element, entry or node &lt;br /&gt;
	following position provided&lt;br /&gt;
PREV(LinkedVariable, PosVariable)	returns position of element, entry or node &lt;br /&gt;
	preceding position provided&lt;br /&gt;
REMOVE(LinkedVariable, PosVariable)	remove and deletes element, entry or node &lt;br /&gt;
	at position&lt;br /&gt;
&lt;br /&gt;
Variable [=] GET(LinkedVariable, PosVariable)	get element, entry or node at position&lt;br /&gt;
X [=] GET(LinkedVariable, PosVariable, Index)	get single value in a given index&lt;br /&gt;
SET(LinkedVariable, PosVariable, Variable)	set element, entry or node at position&lt;br /&gt;
SET(LinkedVariable, PosVariable, entryIndex, Value)&lt;br /&gt;
	set value at specified index of element,&lt;br /&gt;
	entry or node at position&lt;br /&gt;
FIND(LinkedVariable, , TmpVariable Condition)	return first position of an element, entry or&lt;br /&gt;
	node that satisfies the condition&lt;br /&gt;
FIND NEXT(LinkedVariable, PosVariable, TmpVariable, Condition)	&lt;br /&gt;
	return next position of an element, entry or&lt;br /&gt;
	node that satisfies the condition&lt;br /&gt;
SORT(LinkedVariable, TmpVariable1, TmpVariable2, Condition)&lt;br /&gt;
	sort elements, entries or nodes according to &lt;br /&gt;
	condition&lt;br /&gt;
&lt;br /&gt;
===Set Functions===&lt;br /&gt;
CONTAINS(SetVariable, ElementVariable)	TRUE if and only if set variable “contains” &lt;br /&gt;
	variable provided, where two elements are &lt;br /&gt;
	identical if they have identical values&lt;br /&gt;
INSERT(SetVariable, ElementVariable)	add element to set. Only changes set if it &lt;br /&gt;
	doesn’t already contain the element&lt;br /&gt;
SetVariable = UNION(Set1, Set2)	take union of two set variables&lt;br /&gt;
SetVariable = INTERSECTION(Sete1, Set2)	take intersection of two set variables&lt;br /&gt;
SetVariable = SUBTRACT(Sete1, Set2)	subtract second set variable from first&lt;br /&gt;
&lt;br /&gt;
===List Functions===&lt;br /&gt;
HEAD(ListVariable)	returns position of first entry&lt;br /&gt;
TAIL(ListVariable)	returns position of last entry&lt;br /&gt;
INSERT HEAD(ListVariable, EntryElement)	add an entry to front of list&lt;br /&gt;
INSERT TAIL(ListVariable, EntryElement)	add an entry to end of list&lt;br /&gt;
INSERT BEFORE(ListVariable, Index, EntryElement)&lt;br /&gt;
	add an entry before given index&lt;br /&gt;
INSERT AFTER(ListVariable, Index, EntryElement)&lt;br /&gt;
	add an entry after given index&lt;br /&gt;
INSERT AT(ListVariable, Index, EntryElement)	add an entry at given index&lt;br /&gt;
&lt;br /&gt;
REMOVE HEAD(ListVariable)	removes and deletes first entry&lt;br /&gt;
REMOVE TAIL (ListVariable)	removes and deletes last entry&lt;br /&gt;
REMOVE AT INDEX(ListVariable, Index)	removes and deletes entry at given index&lt;br /&gt;
&lt;br /&gt;
Variable [=] GET HEAD(ListVariable)	returns first entry&lt;br /&gt;
Variable [=] GET TAIL(ListVariable)	returns first entry&lt;br /&gt;
Variable [=] GET AT INDEX(ListVariable, Index)	returns entry at given index&lt;br /&gt;
Pos = POS AT INDEX(ListVariable, Index)	returns position at given index&lt;br /&gt;
&lt;br /&gt;
===Tree Functions===&lt;br /&gt;
ADD ROOT(TreeVariable, EntryElement)	add root element of a tree&lt;br /&gt;
INSERT LEFT CHILD(TreeVariable, PosVariable, EntryElement)&lt;br /&gt;
	add child to a node on the left of current&lt;br /&gt;
	children&lt;br /&gt;
INSERT RIGHT CHILD(TreeVariable, PosVariable, EntryElement)&lt;br /&gt;
	add child to a node on the right of current&lt;br /&gt;
	children&lt;br /&gt;
INSERT CHILD(TreeVariable, PosVariable, EntryElement, Index)&lt;br /&gt;
	add child to a node at given index (from&lt;br /&gt;
	left)&lt;br /&gt;
&lt;br /&gt;
n = CHILDREN(TreeVariable, PosVariable)	number of children at a given position&lt;br /&gt;
Pos = PARENT(TreeVariable, PosVariable)	Position of parent of a node&lt;br /&gt;
Pos = LEFT CHILD(TreeVariable, PosVariable)	Position of leftmost child of a node&lt;br /&gt;
Pos = RIGHT CHILD(TreeVariable, PosVariable)	Position of rightmost child of a node&lt;br /&gt;
Pos = CHILD(TreeVariable, PosVariable, Index)	Position of indexed (from left) child of a &lt;br /&gt;
	node&lt;br /&gt;
Pos = NEXT SIBLING(TreeVariable, PosVariable)	Position of next sibling to right of a node&lt;br /&gt;
Pos = PREV SIBLING(TreeVariable, PosVariable)	Position of previous  sibling to right of a &lt;br /&gt;
node&lt;br /&gt;
&lt;br /&gt;
Pos = NEXT DFS(TreeVariable, PosVariable)	Position of next node in depth-first&lt;br /&gt;
	pre-order traversal of a tree. If the position&lt;br /&gt;
	variable is NULL, then the root is returned&lt;br /&gt;
Pos = NEXT POSTORDER DFS(TreeVariable, PosVariable)&lt;br /&gt;
	Position of next node in depth-first&lt;br /&gt;
	post-order traversal of a tree. If the position&lt;br /&gt;
	variable is NULL, then the root is returned&lt;br /&gt;
Variable [=] GET LEFT CHILD(TreeVariable, PosVariable)&lt;br /&gt;
	returns entry of leftmost child for a given&lt;br /&gt;
	node&lt;br /&gt;
Variable [=] GET RIGHT CHILD(TreeVariable, PosVariable)&lt;br /&gt;
	returns entry of rightmost child for a given&lt;br /&gt;
	node&lt;br /&gt;
Variable [=] GET CHILD(TreeVariable, PosVariable, Index)&lt;br /&gt;
	returns entry of child with given index&lt;br /&gt;
	(from left) for a given node&lt;br /&gt;
&lt;br /&gt;
===Graph Functions===&lt;br /&gt;
REMOVE ALL LINKS(GraphVariable) 	clears links of a graph variable&lt;br /&gt;
SIZE LINKS(GraphVariable)	number of links in graph&lt;br /&gt;
IS EMPTY LINKS(GraphVariable)	TRUE if and only if graph has 0 links&lt;br /&gt;
&lt;br /&gt;
FIRST LINK(GraphVariable)	returns position of first link&lt;br /&gt;
NEXT LINK (GraphVariable, PosVariable)	returns position of link following position&lt;br /&gt;
	provided&lt;br /&gt;
PREV LINK (GraphVariable, PosVariable)	returns position of link preceding position&lt;br /&gt;
	provided&lt;br /&gt;
Variable [=] GET LINK(GraphVariable, PosVariable)&lt;br /&gt;
	get link at position&lt;br /&gt;
CONTAINS LINK(GraphVariable, LinkVariable)	TRUE if and only if graph variable contains &lt;br /&gt;
	variable provided&lt;br /&gt;
REMOVE LINK(GraphVariable, PosVariable)	remove and deletes link at position&lt;br /&gt;
SET LINK(GraphVariable, PosVariable, LinkVariable)&lt;br /&gt;
	 Set link at position&lt;br /&gt;
SET LINK(GraphVariable, PosVariable, entryIndex, Value)&lt;br /&gt;
	Set value at specified index of link at&lt;br /&gt;
	position&lt;br /&gt;
FIND LINK(GraphVariable, TmpVariable, Condition)&lt;br /&gt;
	Return first position of link that satisfies the&lt;br /&gt;
	condition&lt;br /&gt;
FIND NEXT LINK(GraphVariable, PosVariable, TmpVariable, Condition)&lt;br /&gt;
	Return next position of a link that satisfies &lt;br /&gt;
	the condition&lt;br /&gt;
SORT LINKS(GraphVariable, TmpVariable1, TmpVariable2, Condition)&lt;br /&gt;
	Sort links according to condition&lt;br /&gt;
LINKED(GraphVariable, NodeVariable1, NodeVariable2, LinkType)&lt;br /&gt;
	TRUE if the nodes are linked. Set LinkType &lt;br /&gt;
	to 0 for direct links and 1 for indirect&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
	<entry>
		<id>https://seles.info/index.php?title=Language_Reference&amp;diff=1999</id>
		<title>Language Reference</title>
		<link rel="alternate" type="text/html" href="https://seles.info/index.php?title=Language_Reference&amp;diff=1999"/>
		<updated>2006-10-03T14:28:41Z</updated>

		<summary type="html">&lt;p&gt;128.100.72.168: /* Probability Density and Cumulative Density Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Constants==&lt;br /&gt;
===ZERO===&lt;br /&gt;
	return 0.0&lt;br /&gt;
===ONE===&lt;br /&gt;
	return 1.0&lt;br /&gt;
#Number	return value of the number specified&lt;br /&gt;
&amp;lt;Constant&amp;gt;	return value of a named constant&lt;br /&gt;
&amp;lt;Constant&amp;gt;[Expr]	return value of a named vector constant&lt;br /&gt;
&amp;lt;Constant&amp;gt;[Expr, Expr]	return value of a named array constant&lt;br /&gt;
&amp;lt;Macro&amp;gt;[Expr]	return value of expression at specified index&lt;br /&gt;
	in macro&lt;br /&gt;
&lt;br /&gt;
==Probability Distributions==&lt;br /&gt;
===NORMAL===&lt;br /&gt;
(Expr, Expr)	draw a value from a normal distribution, where&lt;br /&gt;
	the first expression specifies the mean and&lt;br /&gt;
	the second specifies the standard deviation&lt;br /&gt;
&lt;br /&gt;
===SKEWED NORMAL===&lt;br /&gt;
(Expr, Expr, Expr)	draw a value from a skewed normal distribution, 	where the first expression specifies the mode &lt;br /&gt;
	and the second and third specify the standard &lt;br /&gt;
	deviations to the left and right of the mode &lt;br /&gt;
LOG NORMAL(Expr, Expr)	draw a value from a log normal distribution,&lt;br /&gt;
	where the first expression specifies the mean&lt;br /&gt;
	and the second specifies the standard deviation &lt;br /&gt;
	of the underlying normal distribution&lt;br /&gt;
&lt;br /&gt;
WEIBULL(Expr, Expr) 	draw a value from a Weibull distribution, where&lt;br /&gt;
	the first expression specifies the beta and the&lt;br /&gt;
	second specifies alpha (Note:terminology varies&lt;br /&gt;
	between sources. The version here is equivalent&lt;br /&gt;
	to that in Excel, with reversal of parameters).&lt;br /&gt;
&lt;br /&gt;
NEGEXP(Expr)	draw a value from a negative exponential 	distribution, where the expression specifies the&lt;br /&gt;
	mean&lt;br /&gt;
 POISSION(Expr)	draw a value from a Poisson distribution&lt;br /&gt;
&lt;br /&gt;
UNIFORM(Expr, Expr)	draw a value from a uniform distribution, where 	the first expression determines the minimum	 	value and the second determines the maximum &lt;br /&gt;
CLASSIFIED_DIST	draw a value from a discrete distribution, where 	CLASS Number: Expr	each expression determines the relative  		:	probability of its associated class being drawn. ENDFN		The CLASS keyword is optional.&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST( Number+)	in this form, the classes are assumed to start at 			zero. Only constant probabilities can be given.&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST	in this form, the classes are assumed to start at Expr		zero    :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFIED_DIST[M]	In this form, the classes in a one-dimensional&lt;br /&gt;
			array M, and so start at zero.&lt;br /&gt;
&lt;br /&gt;
===Probability Density and Cumulative Density Functions===&lt;br /&gt;
The following are a set of probability and cumulative density expressions. The results from probability density expressions should be multiplied by a width factor to obtain a probability of value X (i.e. the estimated area under the PDF curve). Without a width factor, the assumed class size is 1. A temporal PDF makes a PDF conditional, where the variable X is assumed to be a time or other increasing value. Essentially, a PDF will give the probability of value X occurring, while a TEMPORAL PDF will give the probability of X occurring given that if hasn’t occurred yet (i.e. given that that actual value of this variable will be &amp;gt;= X).&lt;br /&gt;
&lt;br /&gt;
NORMAL PDF(Expr, Expr, Expr)	normal probability density function, where the 			first expression is the value, the second is the  			mean and the third is the standard deviation &lt;br /&gt;
[[Model Builder&#039;s Guide Chapter 9#Probability Density and Cumulative Density Functions]]&lt;br /&gt;
&lt;br /&gt;
NORMAL CDF(Expr, Expr, Expr)	normal cumulative density function, where the 			first expression is the value, the second is the			mean and the third is the standard deviation &lt;br /&gt;
Probability Density and Cumulative Density Functions&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL PDF(Expr, Expr, Expr, Expr)	skewed normal probability density function,&lt;br /&gt;
	where the first expression specifies the value,&lt;br /&gt;
	the second is the mode and the third and fourth	are the standard deviations to the left and right&lt;br /&gt;
	of the mode. &lt;br /&gt;
Probability Density and Cumulative Density Functions&lt;br /&gt;
&lt;br /&gt;
SKEWED NORMAL CDF(Expr, Expr, Expr, Expr)	skewed normal cumulative density function, 			where the first expression specifies the value, &lt;br /&gt;
			the second is the mode, and the third and fourth 			are the left and right standard deviations&lt;br /&gt;
Probability Density and Cumulative Density Functions&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL PDF(Expr, Expr, Expr)	log normal probability density function, where&lt;br /&gt;
			the first expression specifies the value, the&lt;br /&gt;
			second is the mean and the third is the standard &lt;br /&gt;
			deviation &lt;br /&gt;
Probability Density and Cumulative Density Functions&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL CDF(Expr, Expr, Expr)	log normal cumulative density function, where&lt;br /&gt;
			the first expression specifies the value, the &lt;br /&gt;
			second is the mean and the third is the standard &lt;br /&gt;
			deviation &lt;br /&gt;
NORMAL TEMPORAL PDF(Expr, Expr, Expr) 	temporal normal probability density function &lt;br /&gt;
SKEWED NORMAL TEMPORAL PDF(Expr, Expr, Expr, Expr)&lt;br /&gt;
			temporal skewed normal probability density &lt;br /&gt;
			function&lt;br /&gt;
&lt;br /&gt;
LOG NORMAL TEMPORAL PDF(Expr, Expr, Expr)  temporal log normal probability density&lt;br /&gt;
			function &lt;br /&gt;
UNIFORM TEMPORAL PDF(Expr, Expr, Expr)	temporal uniform probability density expression&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Arithmetic Functions)===&lt;br /&gt;
&amp;lt;Variable&amp;gt;	value of an independent variable &amp;lt;Variable&amp;gt;[Expr]	value of a vector global variable&lt;br /&gt;
&amp;lt;Variable&amp;gt;[Expr, Expr]	value of an array global variable&lt;br /&gt;
&lt;br /&gt;
(Expr)	value of the expression Expr + Expr	sum of two expressions Expr - Expr	value of the first expression minus the value&lt;br /&gt;
	of the second expression Expr * Expr	product of two expressions Expr / Expr	value of the first expression divided by value&lt;br /&gt;
	of the second expression  Expr ^ Expr	value of the first expression to the power of&lt;br /&gt;
	the value of the second expression. An nth&lt;br /&gt;
	root can be computed with1/n as the power.&lt;br /&gt;
| Expr |	absolute value of the expression &lt;br /&gt;
ABS(Expr)	absolute value of the expression &lt;br /&gt;
ABSOLUTE(Expr)	absolute value of the expression &lt;br /&gt;
&lt;br /&gt;
Expr % Expr	value of the first expression modulo the value of&lt;br /&gt;
	the second expression (assumes that the values&lt;br /&gt;
	of the expressions are integers)&lt;br /&gt;
EXP(Expr)	base of the natural logarithm (e) to the power of&lt;br /&gt;
	the expression&lt;br /&gt;
LOG(Expr)	natural logarithm of the value of the expression.&lt;br /&gt;
	Logarithms in other bases can be computed as&lt;br /&gt;
	logb(x) = ln(x) / ln(b)&lt;br /&gt;
&lt;br /&gt;
ROUND(Expr)	expression value rounded to the nearest integer&lt;br /&gt;
FLOOR(Expr)		largest integer smaller than the expression value&lt;br /&gt;
CEILING(Expr)	smallest integer larger than the expression value&lt;br /&gt;
&lt;br /&gt;
CLAMP(Expr, MinExpr, MaxExpr)	clamp the value X of the expression to the range&lt;br /&gt;
			[Min, Max]: if X &amp;lt; Min then return Min; if  			X &amp;lt; Max return Max. Otherwise return X.&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Trigonometric Functions)===&lt;br /&gt;
Angles are all assumed to be in degrees (not radians). In SELES, angles in compass directions (i.e. zero is north, increasing clockwise, in contrast to geometry where zero is each increasing counter-clockwise).&lt;br /&gt;
SIN(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return sin(theta)&lt;br /&gt;
COS(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return cos(theta)&lt;br /&gt;
TAN(Expr)	interpret the value of the expression as an angle &lt;br /&gt;
		theta in degrees, and return tan(theta).&lt;br /&gt;
ARCSIN(Expr)	inverse sine of the value of the expression&lt;br /&gt;
ARCCOS(Expr)	inverse cos of the value of the expression&lt;br /&gt;
ARCTAN(Expr)	inverse tan of the value of the expression&lt;br /&gt;
ARCTAN(Expr, Expr)	inverse tan where first expression is x offset&lt;br /&gt;
		and second is y offset. Providing two &lt;br /&gt;
		expressions gives more information about the &lt;br /&gt;
		quadrant.&lt;br /&gt;
&lt;br /&gt;
===Continuous Functions (Miscellaneous)===&lt;br /&gt;
RESPONSE(Expr, #A, #B, #C)	two-sided version of a standard response &lt;br /&gt;
function for the value X of the first expression: &lt;br /&gt;
if (X &amp;lt; A) return e^(-(X-A)^2/(2*(C^2))&lt;br /&gt;
			else if (X &amp;gt; B) return e^(-(X-B)^2/(2*(C^2))&lt;br /&gt;
			else return 1&lt;br /&gt;
&lt;br /&gt;
DISTANCE(Expr, Expr)	distance between two location indices (normally&lt;br /&gt;
	obtained using the Location variable). Thus,&lt;br /&gt;
	DISTANCE(loc1, loc2) is &lt;br /&gt;
	sqrt(sqr(loc1.x – loc2.x) + sqr(loc1.y – loc2.y))&lt;br /&gt;
&lt;br /&gt;
DIRECTION(Expr, Expr)	angle in degrees between two location indices&lt;br /&gt;
&lt;br /&gt;
===Classified and Discrete Functions===&lt;br /&gt;
CLASSIFY(X)	if the value of the variable X is equal to one of &lt;br /&gt;
	CLASS Number: Expr	the classes listed, then return the result of the.&lt;br /&gt;
	   :	associated expression. Otherwise return 0.&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X)	return the result of the kth expression in the list,&lt;br /&gt;
Expr	where k = X – minimum value of the variables&lt;br /&gt;
   :	(this may be non-0 only for layers)&lt;br /&gt;
   :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): ( Number+)	return the kth number in the list, where &lt;br /&gt;
		k = X – minimum value of the variable (this&lt;br /&gt;
may be non-0 only for layers)&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. Rarely&lt;br /&gt;
		used.&lt;br /&gt;
&lt;br /&gt;
CLASSIFY(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file. Rarely used.&lt;br /&gt;
&lt;br /&gt;
Classified functions use the variable as an index into the list of numbers or expressions that follow. The “CLASS” keyword is optional.  This variable must be non-negative. If “CLASS # :” is used, then the number refers to the value of the indexing variable. If a class is not specified for a given value, its expression is implicitly ZERO.  Interpolation tables are very similar except that the variable is assumed to be continuous instead of classified.  An interpolated value between classes is returned.  Lookup tables are also similar, except that both the variable and classes are assumed to be continuous values. An interpolated value between classes is also returned. Rarely used.&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	return an interpolated value where the value of&lt;br /&gt;
	CLASS Number: Number	variable X is placed between two classes or at&lt;br /&gt;
 	   :	either end of the table.&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): ( Number+)	same as above, except the classes are&lt;br /&gt;
		implicitly 0, …. k-1&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	same as above, except the values in the&lt;br /&gt;
	CLASS Number: Expr	table are obtained by evaluating expressions&lt;br /&gt;
	   :				&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X)	same as above, except the classes are &lt;br /&gt;
Expr	implicitly 0, …, k-1&lt;br /&gt;
   :					&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs&lt;br /&gt;
&lt;br /&gt;
INTERPOLATE(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table &lt;br /&gt;
		file.&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	return the interpolated value where the value of&lt;br /&gt;
	CLASS Number: Number	variable X is placed between two classes or at&lt;br /&gt;
 	   :	either end of the table, and classes can be any.&lt;br /&gt;
ENDFN	real values.&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): ( Number+)	same as above, except the classes are&lt;br /&gt;
		implicitly 0, …. k-1&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	same as above, except the values in the&lt;br /&gt;
	CLASS Number: Expr	table are obtained by evaluating expressions&lt;br /&gt;
	   :				&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X)	same as above, except the classes are &lt;br /&gt;
Expr	implicitly 0, …, k-1&lt;br /&gt;
   :					&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): Filename	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs&lt;br /&gt;
&lt;br /&gt;
LOOKUP(X): Filename Key	uses the table in the named file, which is &lt;br /&gt;
		assumed to consist of class:value pairs. The key &lt;br /&gt;
		is used to specify a sub-table in a multi-table&lt;br /&gt;
		file &lt;br /&gt;
&lt;br /&gt;
===Boolean Functions===&lt;br /&gt;
Expr EQ Expr	TRUE if the values of the two expressions are&lt;br /&gt;
		equal; otherwise FALSE&lt;br /&gt;
Expr == Expr	alternate form of EQ comparison (Note: two equal signs distinguish this from an assignment)&lt;br /&gt;
&lt;br /&gt;
Expr NEQ Expr	TRUE if the values are not equal; otherwise&lt;br /&gt;
		FALSE&lt;br /&gt;
Expr != Expr	alternate form of NOT EQUAL comparison&lt;br /&gt;
&lt;br /&gt;
Expr &amp;lt; Expr	TRUE if the value of the first expression is less&lt;br /&gt;
		than the value of the second expression;&lt;br /&gt;
		otherwise FALSE&lt;br /&gt;
Expr &amp;lt;= Expr	TRUE if the value of the first expression is less&lt;br /&gt;
		than or equal to the value of the second&lt;br /&gt;
		expression; otherwise FALSE&lt;br /&gt;
&lt;br /&gt;
Expr &amp;gt; Expr	TRUE if the value of the first expression is&lt;br /&gt;
		greater than the value of the second &lt;br /&gt;
		expression; otherwise FALSE&lt;br /&gt;
Expr &amp;gt;= Expr	TRUE if the value of the first expression is&lt;br /&gt;
		greater than or equal to the value of the &lt;br /&gt;
		second expression; otherwise FALSE&lt;br /&gt;
&lt;br /&gt;
!Expr		Negates the expression Boolean value&lt;br /&gt;
&lt;br /&gt;
Expr AND Expr	TRUE if values of both expressions are&lt;br /&gt;
		TRUE and FALSE otherwise&lt;br /&gt;
&lt;br /&gt;
Expr OR Expr	TRUE if value of at least one expression is&lt;br /&gt;
		TRUE and FALSE otherwise&lt;br /&gt;
&lt;br /&gt;
Note that relations can be cascaded, with the interpretation that each operator applies independently to its surrounding pair of expressions. Thus, the expression: Expression &amp;lt;= Expression &amp;lt;= Expression (e.g. 5 &amp;lt;= age &amp;lt;= 50) specifies a “between” relation, which is TRUE only if the value of the centre expression falls in the specified range.&lt;br /&gt;
&lt;br /&gt;
===Bit-Vector Functions===&lt;br /&gt;
Bit-vector functions treat an integer value (the independent variable) as a sequence of bits, each of which can be independently set and accessed. This can allow use of a single layer to hold lots of Boolean information, since each cell as an integer has 8, 16 or 32 bits. For example, bits 0, 1, 2 and 3 can be used to store four different Boolean states (a, b, c and d), and the sequence 0110 means that states a and d are FALSE and states b and c are TRUE. PositionList is a semi-colon separated sequence of integer or ranges (lower-upper) indicating positions in the integer (0-31). For example, the PositionList 1;4-6;27 indicates bits at positions 1, 4, 5, 6 and 27.&lt;br /&gt;
&lt;br /&gt;
SETAT(Expr, PositionList, #Type)	Set the value specified by the expression, at &lt;br /&gt;
		the positions in PositionList to: FALSE (0) &lt;br /&gt;
		if Type is 0, TRUE (1) if Type is 1,&lt;br /&gt;
		and flip the bits if Type = 2&lt;br /&gt;
&lt;br /&gt;
SETAT(Expr, PositionList,#Type,#Prob)	Same as above, except each position is set&lt;br /&gt;
		with probability #Prob&lt;br /&gt;
&lt;br /&gt;
SELECTAT(Expr, PositionList)	FALSE(0) if none of the bits in PositionList are&lt;br /&gt;
		set in the specified expression value and&lt;br /&gt;
		TRUE(1) otherwise&lt;br /&gt;
&lt;br /&gt;
MAX POSITION(Expr)	Return the maximum 0-based bit position that is &lt;br /&gt;
		set to one in the expression  value (interpreted &lt;br /&gt;
		as a bit-vector), or –1 if no bits are set&lt;br /&gt;
&lt;br /&gt;
MIN POSITION(Expr)	Return the minimum 0-based bit position that is &lt;br /&gt;
		set to one in the expression  value (interpreted &lt;br /&gt;
		as a bit-vector), or –1 if no bits are set&lt;br /&gt;
&lt;br /&gt;
BITWISE OR(Expr, Expr)	Bitwise OR of two values&lt;br /&gt;
BITWISE AND(Expr, Expr)	Bitwise AND of two values&lt;br /&gt;
BITWISE XOR(Expr, Expr)	Bitwise exclusive-OR of two values&lt;br /&gt;
BITWISE NOT Expr	Bitwise NOT of a value&lt;br /&gt;
&lt;br /&gt;
SHIFT LEFT(Expr, Expr)	Shifts value of first expression to the left by &lt;br /&gt;
		number of bits specified by second expression&lt;br /&gt;
SHIFT RIGHT(Expr, Expr)	Shifts value of first expression to the right by &lt;br /&gt;
		number of bits specified by second expression&lt;br /&gt;
&lt;br /&gt;
===Control Expressions===&lt;br /&gt;
Note the difference between the first two “functional if’s” (i.e. a value is returned) and the latter “procedural if’s” (that don’t return a value, but control flow).&lt;br /&gt;
&lt;br /&gt;
IF Expr THEN Expr ELSE Expr	if value of the IF expression is TRUE (&amp;gt;= 1), 	then return the value of the THEN expression,&lt;br /&gt;
	otherwise return value of the ELSE expression&lt;br /&gt;
&lt;br /&gt;
(Expr ? Expr : Expr)	Same as above, but this form can be used as an&lt;br /&gt;
	embedded sub-expression.&lt;br /&gt;
&lt;br /&gt;
IF Expr	Procedural IF statement to process&lt;br /&gt;
 …	sub-expressions denoted by “…” only if the &lt;br /&gt;
ENDFN	expression evaluates to TRUE&lt;br /&gt;
&lt;br /&gt;
IF Expr	Procedural IF statement to process the first set&lt;br /&gt;
 …	of sub-expressions denoted by “…”if the &lt;br /&gt;
ELSE	expression evaluates to TRUE and the set of&lt;br /&gt;
 …	sub-expressions after the ELSE otherwise. Note &lt;br /&gt;
ENDFN	that “ELSE IF expr” forms can be strung&lt;br /&gt;
	together&lt;br /&gt;
&lt;br /&gt;
WHILE Expr	While loop: process sub-expressions denoted by&lt;br /&gt;
 …	 “…” while the expression evaluates to TRUE&lt;br /&gt;
ENDFN	&lt;br /&gt;
&lt;br /&gt;
PAUSE		Halts the simulation and displays a dialog&lt;br /&gt;
			box to which the user must respond to continue&lt;br /&gt;
&lt;br /&gt;
PAUSE IF Expr	If the expression evaluates to TRUE, halts the &lt;br /&gt;
			simulation and displays a dialog box to which &lt;br /&gt;
			the user must respond to continue&lt;br /&gt;
&lt;br /&gt;
PAUSE(#Value)	Pauses the simulation for the specified number&lt;br /&gt;
			of milliseconds and then continues&lt;br /&gt;
&lt;br /&gt;
PAUSE(#Value) IF Expr	If the expression evaluates to TRUE, Pauses the &lt;br /&gt;
			simulation for the specified number of &lt;br /&gt;
			milliseconds and then continues&lt;br /&gt;
&lt;br /&gt;
WAIT UNTIL Expr	Suspend execution until the expression returns 			TRUE (1). This is intended for controlling&lt;br /&gt;
			communication and synchronization with&lt;br /&gt;
			an external application. &lt;br /&gt;
CRITICAL SECTION (Flag)	Enter (if Flag is TRUE) or exit (if Flag is 			FALSE) a critical section. A critical section 			gives priority to this application, and is used for&lt;br /&gt;
			synchronizing access to shared variables&lt;br /&gt;
(i.e. shared with another application).&lt;br /&gt;
&lt;br /&gt;
DEBUG		Update the simulation probe, if it is loaded and&lt;br /&gt;
			The event is selected. Used to debug/verify&lt;br /&gt;
			event behaviour.&lt;br /&gt;
&lt;br /&gt;
SEED()		Gets the random number seed&lt;br /&gt;
SEED(Expr)		Sets the random number seed. Value returned is &lt;br /&gt;
			next seed.&lt;br /&gt;
&lt;br /&gt;
RESIZE(Variable, Expr)	Changes size (number of entries) in a global&lt;br /&gt;
			variable. Values are not maintained. Useful for &lt;br /&gt;
			when size is not known prior to simulation.&lt;br /&gt;
&lt;br /&gt;
RECOMPUTE	Only valid in consequent expressions of &lt;br /&gt;
			ProbInit and also when ProbInit recompute flag&lt;br /&gt;
			has been set. Causes prob. surface to be&lt;br /&gt;
			recomputed before next selection&lt;br /&gt;
===Output Expressions===&lt;br /&gt;
DISPLAY		Display on the screen the labelled 	Label: Expr	values computed with the expressions listed.&lt;br /&gt;
	      ….		If no label is given, the expression must&lt;br /&gt;
ENDFN		be a variable, and this is used for the label.&lt;br /&gt;
&lt;br /&gt;
DISPLAY		Same as above, but only display if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	The keyword DECISION can be replaced by&lt;br /&gt;
	      ….		a “?”&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Output to the record file of output variable	the labelled values computed with the  Label: Expr	expressions listed. If no label is given, the&lt;br /&gt;
	      ….		Expression must be a variable and this is&lt;br /&gt;
ENDFN		used as label.&lt;br /&gt;
&lt;br /&gt;
OUTPUT RECORD(OutputVar)	Same as above, but only output if the  DECISION Expr	decision expression evaluates to TRUE&lt;br /&gt;
	Label: Expr	&lt;br /&gt;
	      ….		&lt;br /&gt;
ENDFN		&lt;br /&gt;
&lt;br /&gt;
Note: a label/expression pair can be “expanded” by using the form: Label#n1:n2: Expr, where n1 and n2 are integers or constant names. This will create n2-n1+1 columns rather than a single column. The system variable Index can be used in the expression, and will take on values n1, n1+1,…,n2 for each column, respectively.&lt;br /&gt;
&lt;br /&gt;
===Composite Functions===&lt;br /&gt;
Compound expressions all have the same form of an expression name followed by a list of sub-expressions.  If the first expression is a region function, then the subsequent expressions are all evaluated over the defined region, instead of only at the current cell (however, it is usually simpler to use an OVER REGION expression). When arithmetic expression become complex, sometimes composite expressions can be written more clearly. The general format is as follows:&lt;br /&gt;
&lt;br /&gt;
CompositeExpressionName&lt;br /&gt;
	Expr&lt;br /&gt;
	      :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
The following composite expressions are supported:&lt;br /&gt;
&lt;br /&gt;
===SUM===&lt;br /&gt;
DESCRIPTION: &lt;br /&gt;
Returns the number that is the sum of all the expressions.&lt;br /&gt;
&lt;br /&gt;
USAGE: &lt;br /&gt;
   x=SUM &lt;br /&gt;
       Expr&lt;br /&gt;
       ...  &lt;br /&gt;
     ENDFN&lt;br /&gt;
&lt;br /&gt;
REQUIRED ARGUMENTS: &lt;br /&gt;
Expr is any expression that evaluates to single numeric value.&lt;br /&gt;
&lt;br /&gt;
VALUE: &lt;br /&gt;
the sum of all the arguments.&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: &lt;br /&gt;
&amp;lt;a link to the composite functions section of seles modellers guide&amp;gt;&lt;br /&gt;
&lt;br /&gt;
EXAMPLES: &amp;lt;add carriage return here&amp;gt;&lt;br /&gt;
Example 1:&lt;br /&gt;
   y = 3&lt;br /&gt;
   x = SUM  &lt;br /&gt;
         y  &lt;br /&gt;
         y+2  &lt;br /&gt;
         5  &lt;br /&gt;
       ENDFN &lt;br /&gt;
&amp;lt;figure out an end example indicator. For example, ***&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SAMPLE MODELS: &lt;br /&gt;
&amp;lt;links to sample models where this function is used&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===PRODUCT===&lt;br /&gt;
	product of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
DIVIDE	successive division of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
MEAN		average of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
GEOMETRIC MEAN	geometric mean of the sub-expressions  (nth &lt;br /&gt;
		root of the product for n expressions)&lt;br /&gt;
&lt;br /&gt;
MIN		minimum of the sub-expressions &lt;br /&gt;
&lt;br /&gt;
MAX		maximum of the sub-expressions&lt;br /&gt;
&lt;br /&gt;
EQUAL	TRUE (1) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and FALSE (0) otherwise&lt;br /&gt;
NOT EQUAL	FALSE (0) if the sub-expressions all evaluate to&lt;br /&gt;
		the same value and TRUE (1) otherwise&lt;br /&gt;
&lt;br /&gt;
OR		TRUE (1) if at least one sub-expression&lt;br /&gt;
		evaluates to TRUE and FALSE (0) otherwise &lt;br /&gt;
&lt;br /&gt;
AND		TRUE (1) if all sub-expressions evaluate to&lt;br /&gt;
		TRUE and FALSE (0) otherwise &lt;br /&gt;
&lt;br /&gt;
LESS OR EQUAL	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;lt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
ORDERED	same as LESS OR EQUAL&lt;br /&gt;
&lt;br /&gt;
LESS THAN	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;lt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
STRICT ORDERED	same as LESS THAN&lt;br /&gt;
&lt;br /&gt;
GREATER OR EQUAL	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;=, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
GREATER THAN	TRUE (1) if the sub-expression evaluations are&lt;br /&gt;
		all ordered according to the relation &amp;gt;, and&lt;br /&gt;
		FALSE (0) otherwise&lt;br /&gt;
&lt;br /&gt;
===Region Functions===&lt;br /&gt;
A region function returns the set of locations, one on each call. Their use is limited to the main expression of EventLocation, SpreadLocation, AgentLocation and MoveLocation properties, as the first expression of composite expressions and in OVER REGION functions.&lt;br /&gt;
&lt;br /&gt;
REGION WHOLE MAP	defines the region consisting of the entire&lt;br /&gt;
	DECISION Expr	landscape. If there is a decision expression, &lt;br /&gt;
		then only those cells for which this expression &lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION RECT (Expr, Expr, Expr, Expr)	defines a rectangular region. If there is a&lt;br /&gt;
	DECISION Expr	decision expression defined, then only those&lt;br /&gt;
		cells for which this expression returns&lt;br /&gt;
		TRUE will be included&lt;br /&gt;
&lt;br /&gt;
REGION CENTRED (Expr, Expr [, DistanceType][, WRAPPED])&lt;br /&gt;
	DECISION Expr	defines a region centred on the current cell.&lt;br /&gt;
		If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns&lt;br /&gt;
		TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
DistanceType is either CARDINAL or EUCLIDEAN (the default). Cardinal distance between two cells is the minimum number of cardinal steps (up, down, left, right) to reach one cell from the other. Euclidean distance is the straight-line distance between two points. The WRAPPED flag, if present indicates that the region wraps around the sides (vertically and horizontally) of the landscape (e.g. a location x positions beyond the right-hand side of a raster will be mapped to x positions in from the left-hand side of the raster). If not present, the landscape does not wrap.&lt;br /&gt;
&lt;br /&gt;
REGION LOCATION LIST(Number+)	defines the region consisting of a set of &lt;br /&gt;
	DECISION Expr	known location indices. If there is a decision 		expression, then only those cells for which this &lt;br /&gt;
		expression returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION LOCATION LIST(X,n)	defines the region consisting of a set of n&lt;br /&gt;
	DECISION Expr	location indices stored in one-dimensional X. &lt;br /&gt;
&lt;br /&gt;
REGION LOCATION (Expr)	defines the region consisting of a of a single&lt;br /&gt;
	DECISION Expr	location index. If there is a decision expression,&lt;br /&gt;
		then only those cells for which this expression&lt;br /&gt;
		returns TRUE will be included.&lt;br /&gt;
&lt;br /&gt;
REGION VECTOR (StartLocation, EndLocation)	defines region consisting of cells along an&lt;br /&gt;
	DECISION Expr	approximation of line between end cells&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cost surface and least-cost path regions are advanced features that are best understood with an example model.&lt;br /&gt;
&lt;br /&gt;
REGION COST SURFACE(EndLocation, MaxCost, CostSurface)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
	COST Expr&lt;br /&gt;
REGION COST SURFACE(EndLocation, MaxCost, CostSurface, LeastCostNeighbs, AnchorLoc)&lt;br /&gt;
	DECISION Expr	&lt;br /&gt;
	COST Expr&lt;br /&gt;
		Defines a region surrounding a cell with &lt;br /&gt;
		cumulative costs less than MaxCost. Stops&lt;br /&gt;
		growing when EndLocation is reached or all&lt;br /&gt;
		costs are greater than MaxCost. Second form &lt;br /&gt;
		also records gradient and anchor location&lt;br /&gt;
		layers. The CostSurface layer records the&lt;br /&gt;
		cumulative cost from the cost function&lt;br /&gt;
&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
	COST Expr&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation, LeastCostNeighbs)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
REGION LEAST COST PATH(StartLocation, EndLocation, LeastCostNeighbs, AnchorLoc)&lt;br /&gt;
	DECISION Expr&lt;br /&gt;
		Defines a region with cells that approximate&lt;br /&gt;
		the least-cost path between two cells. The&lt;br /&gt;
		first generates the cost function internally.&lt;br /&gt;
		The latter two use input information from a&lt;br /&gt;
		pre-computed cost surface region. Providing &lt;br /&gt;
		both the gradient and anchor location layers &lt;br /&gt;
		provides the most accurate approximation.&lt;br /&gt;
&lt;br /&gt;
Iteration is a common aspect of models (even if it is very procedural). Most programming languages offer a “for-loop” of some kind. SELES presently provides “over index sequence” expressions as a slightly more declarative (although also more cumbersome) expression for iterating. While-loops can also be used.&lt;br /&gt;
&lt;br /&gt;
OVER INDEX SEQUENCE(Expr, Expr)	defines linear sequence of location indices. &lt;br /&gt;
	DECISION Expr	If there is a decision expression, then only &lt;br /&gt;
		those cells for which this expression returns &lt;br /&gt;
		TRUE will be included.  The system variable &lt;br /&gt;
		Index holds the value of the index at each value &lt;br /&gt;
		in the sequence&lt;br /&gt;
&lt;br /&gt;
Over region expressions are very frequently used to visit all cells in a landscape that meet some condition (e.g. to compute the size of the forest at initiation).&lt;br /&gt;
&lt;br /&gt;
OVER RegionFunction	Apply a set of sub-expressions at all spatial&lt;br /&gt;
   Expression	locations specified by a region function&lt;br /&gt;
	        :&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
AT LOCATION #Expr	Apply a set of state-changes at a specified&lt;br /&gt;
   Expression	location&lt;br /&gt;
	:&lt;br /&gt;
ENDFN&lt;br /&gt;
&lt;br /&gt;
===Matrix Functions===&lt;br /&gt;
Matrix assignment is indicated using “[=]” instead of “=”.  The proper dimensions of the component arrays must be met.&lt;br /&gt;
&lt;br /&gt;
Variable [=] Variable	assign variable of same dimension, or a &lt;br /&gt;
	single value to all entries&lt;br /&gt;
Variable [=] Variable + Variable	sum variables of same dimension (or with a &lt;br /&gt;
	constant)&lt;br /&gt;
Variable [=] Variable - Variable	subtract variables of same dimension (or&lt;br /&gt;
	with a constant)&lt;br /&gt;
Variable [=] Variable * Variable	matrix or scalar multiplication. &lt;br /&gt;
&lt;br /&gt;
Variable [=] TRANSPOSE(Variable)	matrix transposition&lt;br /&gt;
Variable [=] Variable^-1	invert a matrix&lt;br /&gt;
Variable = SUM(Variable)	sum all entries in a matrix&lt;br /&gt;
Variable [=] SUM ROWS (Variable)	sum all rows of a matrix (result has one&lt;br /&gt;
	value per column)&lt;br /&gt;
Variable [=] SUM COLS(Variable)	sum all columns of a matrix&lt;br /&gt;
&lt;br /&gt;
Variables [=] SORT(Variable, Expr)	sort rows of an input matrix where rank is &lt;br /&gt;
	given by Expr. The system variable “Index” &lt;br /&gt;
	can appear in the expression and will take on&lt;br /&gt;
	the range of indices in the input array. The &lt;br /&gt;
	resulting sorted matrix will be assigned.&lt;br /&gt;
&lt;br /&gt;
Variable [=] MPM_MULT(Variable, Variable)	Performs a “matrix population model” &lt;br /&gt;
	(MPM) integer-based multiplication. &lt;br /&gt;
	Assumes that first matrix is two-dimensional &lt;br /&gt;
	and that second is a vector. The result is &lt;br /&gt;
	two-dimensional, where entries above &lt;br /&gt;
	diagonal represent &amp;quot;offspring&amp;quot;, entries on the&lt;br /&gt;
	diagonal represent &amp;quot;survivors&amp;quot; and entries &lt;br /&gt;
	below the diagonal represent &amp;quot;succeeders&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Variable [=] CONTAG(Variable, Variable)	Creates a “temporal contagion” matrix. &lt;br /&gt;
	Given probabilities (first parameter) for a set&lt;br /&gt;
	of states and a two-dimensional contagion &lt;br /&gt;
	array (values –1 to 1 indicating affinity), &lt;br /&gt;
	generates a matrix where each row is a prob. &lt;br /&gt;
	dist. For transitions given the row value, and &lt;br /&gt;
	the overall target dist. will be met.&lt;br /&gt;
&lt;br /&gt;
===General Set, List and Graph Functions===&lt;br /&gt;
REMOVE ALL(LinkedVariable)	clears variable. No return value&lt;br /&gt;
SIZE(LinkedVariable)	number of elements, entries or nodes&lt;br /&gt;
IS EMPTY(LinkedVariable)	TRUE if and only if variable has 0 elements&lt;br /&gt;
&lt;br /&gt;
FIRST(LinkedVariable)	returns position of first element, entry or&lt;br /&gt;
	node&lt;br /&gt;
NEXT(LinkedVariable, PosVariable)	returns position of element, entry or node &lt;br /&gt;
	following position provided&lt;br /&gt;
PREV(LinkedVariable, PosVariable)	returns position of element, entry or node &lt;br /&gt;
	preceding position provided&lt;br /&gt;
REMOVE(LinkedVariable, PosVariable)	remove and deletes element, entry or node &lt;br /&gt;
	at position&lt;br /&gt;
&lt;br /&gt;
Variable [=] GET(LinkedVariable, PosVariable)	get element, entry or node at position&lt;br /&gt;
X [=] GET(LinkedVariable, PosVariable, Index)	get single value in a given index&lt;br /&gt;
SET(LinkedVariable, PosVariable, Variable)	set element, entry or node at position&lt;br /&gt;
SET(LinkedVariable, PosVariable, entryIndex, Value)&lt;br /&gt;
	set value at specified index of element,&lt;br /&gt;
	entry or node at position&lt;br /&gt;
FIND(LinkedVariable, , TmpVariable Condition)	return first position of an element, entry or&lt;br /&gt;
	node that satisfies the condition&lt;br /&gt;
FIND NEXT(LinkedVariable, PosVariable, TmpVariable, Condition)	&lt;br /&gt;
	return next position of an element, entry or&lt;br /&gt;
	node that satisfies the condition&lt;br /&gt;
SORT(LinkedVariable, TmpVariable1, TmpVariable2, Condition)&lt;br /&gt;
	sort elements, entries or nodes according to &lt;br /&gt;
	condition&lt;br /&gt;
&lt;br /&gt;
===Set Functions===&lt;br /&gt;
CONTAINS(SetVariable, ElementVariable)	TRUE if and only if set variable “contains” &lt;br /&gt;
	variable provided, where two elements are &lt;br /&gt;
	identical if they have identical values&lt;br /&gt;
INSERT(SetVariable, ElementVariable)	add element to set. Only changes set if it &lt;br /&gt;
	doesn’t already contain the element&lt;br /&gt;
SetVariable = UNION(Set1, Set2)	take union of two set variables&lt;br /&gt;
SetVariable = INTERSECTION(Sete1, Set2)	take intersection of two set variables&lt;br /&gt;
SetVariable = SUBTRACT(Sete1, Set2)	subtract second set variable from first&lt;br /&gt;
&lt;br /&gt;
===List Functions===&lt;br /&gt;
HEAD(ListVariable)	returns position of first entry&lt;br /&gt;
TAIL(ListVariable)	returns position of last entry&lt;br /&gt;
INSERT HEAD(ListVariable, EntryElement)	add an entry to front of list&lt;br /&gt;
INSERT TAIL(ListVariable, EntryElement)	add an entry to end of list&lt;br /&gt;
INSERT BEFORE(ListVariable, Index, EntryElement)&lt;br /&gt;
	add an entry before given index&lt;br /&gt;
INSERT AFTER(ListVariable, Index, EntryElement)&lt;br /&gt;
	add an entry after given index&lt;br /&gt;
INSERT AT(ListVariable, Index, EntryElement)	add an entry at given index&lt;br /&gt;
&lt;br /&gt;
REMOVE HEAD(ListVariable)	removes and deletes first entry&lt;br /&gt;
REMOVE TAIL (ListVariable)	removes and deletes last entry&lt;br /&gt;
REMOVE AT INDEX(ListVariable, Index)	removes and deletes entry at given index&lt;br /&gt;
&lt;br /&gt;
Variable [=] GET HEAD(ListVariable)	returns first entry&lt;br /&gt;
Variable [=] GET TAIL(ListVariable)	returns first entry&lt;br /&gt;
Variable [=] GET AT INDEX(ListVariable, Index)	returns entry at given index&lt;br /&gt;
Pos = POS AT INDEX(ListVariable, Index)	returns position at given index&lt;br /&gt;
&lt;br /&gt;
===Tree Functions===&lt;br /&gt;
ADD ROOT(TreeVariable, EntryElement)	add root element of a tree&lt;br /&gt;
INSERT LEFT CHILD(TreeVariable, PosVariable, EntryElement)&lt;br /&gt;
	add child to a node on the left of current&lt;br /&gt;
	children&lt;br /&gt;
INSERT RIGHT CHILD(TreeVariable, PosVariable, EntryElement)&lt;br /&gt;
	add child to a node on the right of current&lt;br /&gt;
	children&lt;br /&gt;
INSERT CHILD(TreeVariable, PosVariable, EntryElement, Index)&lt;br /&gt;
	add child to a node at given index (from&lt;br /&gt;
	left)&lt;br /&gt;
&lt;br /&gt;
n = CHILDREN(TreeVariable, PosVariable)	number of children at a given position&lt;br /&gt;
Pos = PARENT(TreeVariable, PosVariable)	Position of parent of a node&lt;br /&gt;
Pos = LEFT CHILD(TreeVariable, PosVariable)	Position of leftmost child of a node&lt;br /&gt;
Pos = RIGHT CHILD(TreeVariable, PosVariable)	Position of rightmost child of a node&lt;br /&gt;
Pos = CHILD(TreeVariable, PosVariable, Index)	Position of indexed (from left) child of a &lt;br /&gt;
	node&lt;br /&gt;
Pos = NEXT SIBLING(TreeVariable, PosVariable)	Position of next sibling to right of a node&lt;br /&gt;
Pos = PREV SIBLING(TreeVariable, PosVariable)	Position of previous  sibling to right of a &lt;br /&gt;
node&lt;br /&gt;
&lt;br /&gt;
Pos = NEXT DFS(TreeVariable, PosVariable)	Position of next node in depth-first&lt;br /&gt;
	pre-order traversal of a tree. If the position&lt;br /&gt;
	variable is NULL, then the root is returned&lt;br /&gt;
Pos = NEXT POSTORDER DFS(TreeVariable, PosVariable)&lt;br /&gt;
	Position of next node in depth-first&lt;br /&gt;
	post-order traversal of a tree. If the position&lt;br /&gt;
	variable is NULL, then the root is returned&lt;br /&gt;
Variable [=] GET LEFT CHILD(TreeVariable, PosVariable)&lt;br /&gt;
	returns entry of leftmost child for a given&lt;br /&gt;
	node&lt;br /&gt;
Variable [=] GET RIGHT CHILD(TreeVariable, PosVariable)&lt;br /&gt;
	returns entry of rightmost child for a given&lt;br /&gt;
	node&lt;br /&gt;
Variable [=] GET CHILD(TreeVariable, PosVariable, Index)&lt;br /&gt;
	returns entry of child with given index&lt;br /&gt;
	(from left) for a given node&lt;br /&gt;
&lt;br /&gt;
===Graph Functions===&lt;br /&gt;
REMOVE ALL LINKS(GraphVariable) 	clears links of a graph variable&lt;br /&gt;
SIZE LINKS(GraphVariable)	number of links in graph&lt;br /&gt;
IS EMPTY LINKS(GraphVariable)	TRUE if and only if graph has 0 links&lt;br /&gt;
&lt;br /&gt;
FIRST LINK(GraphVariable)	returns position of first link&lt;br /&gt;
NEXT LINK (GraphVariable, PosVariable)	returns position of link following position&lt;br /&gt;
	provided&lt;br /&gt;
PREV LINK (GraphVariable, PosVariable)	returns position of link preceding position&lt;br /&gt;
	provided&lt;br /&gt;
Variable [=] GET LINK(GraphVariable, PosVariable)&lt;br /&gt;
	get link at position&lt;br /&gt;
CONTAINS LINK(GraphVariable, LinkVariable)	TRUE if and only if graph variable contains &lt;br /&gt;
	variable provided&lt;br /&gt;
REMOVE LINK(GraphVariable, PosVariable)	remove and deletes link at position&lt;br /&gt;
SET LINK(GraphVariable, PosVariable, LinkVariable)&lt;br /&gt;
	 Set link at position&lt;br /&gt;
SET LINK(GraphVariable, PosVariable, entryIndex, Value)&lt;br /&gt;
	Set value at specified index of link at&lt;br /&gt;
	position&lt;br /&gt;
FIND LINK(GraphVariable, TmpVariable, Condition)&lt;br /&gt;
	Return first position of link that satisfies the&lt;br /&gt;
	condition&lt;br /&gt;
FIND NEXT LINK(GraphVariable, PosVariable, TmpVariable, Condition)&lt;br /&gt;
	Return next position of a link that satisfies &lt;br /&gt;
	the condition&lt;br /&gt;
SORT LINKS(GraphVariable, TmpVariable1, TmpVariable2, Condition)&lt;br /&gt;
	Sort links according to condition&lt;br /&gt;
LINKED(GraphVariable, NodeVariable1, NodeVariable2, LinkType)&lt;br /&gt;
	TRUE if the nodes are linked. Set LinkType &lt;br /&gt;
	to 0 for direct links and 1 for indirect&lt;/div&gt;</summary>
		<author><name>128.100.72.168</name></author>
	</entry>
</feed>