Alphabetical list of all functions (except trigonometric functions, which are listed separately)
|
Input(s) |
|||
|
Returns the absolute value of X |
|||
|
Result is true if all the elements of the array [X] or the list {X} are true |
boolean array/list |
||
|
Result is true if any of the elements of the array [X] or the list {X} are true. |
boolean array or list |
||
|
Rounds up X to the next whole number |
|||
|
X is an immigration, reproduction or creation channel. Returns true if this individual appeared through that channel. |
|||
|
Number of values in the array [X] or the list {X} |
scalar array/list |
||
|
Returns value of variable X, n time steps ago |
variable, integer |
||
|
Returns the duration of the time step level I |
|||
|
Picks the I'th value form the array [X] |
array of any type,integer |
||
|
Returns e to the power X |
|||
|
Rounds X down to a whole number |
|||
|
Returns remainder after dividing X by Y |
numeric, numeric |
||
|
Returns the largest value from an array [X] or the list {X} |
numeric array/list |
||
|
Returns length of hypotenuse of triangle with base X and height Y |
numeric, numeric |
||
|
Returns the index (instance number) of a member of a fixed membership or population submodel, for the level I of submodel nesting. |
|||
|
Returns the time at which this instance appeared -- argument is dummy |
|||
|
Returns integer part of X |
|||
|
Recalls value of X from previous time step |
|||
|
Returns the smallest value from an array [X] or the list {X} |
numeric array/list |
||
|
Returns natural logarithm of X |
|||
|
Returns base-10 logarithm of X |
|||
|
Makes an array consisting of N lots of X |
any type, numeric |
array of same type |
|
|
Returns greater of X and Y |
numeric, numeric |
||
|
Returns lesser of X and Y |
numeric, numeric |
||
|
Returns the id of the individual whose reproduction gave rise to this one, or 0 if it immigrated or was created |
|||
|
When making an array with makearray, this gives each term's position in the array -- argument is nesting depth |
|||
|
Returns X raised to the power Y |
numeric, numeric |
||
|
Returns the value of this component N time steps ago |
|||
|
Result is the product of all elements of the array [X] or the list {X} |
numeric array/list |
||
|
Returns a random number between X and Y at the start of the simulation or when the submodel instance is created, which stays the same until the simulation is reset. |
numeric, numeric |
||
|
Returns a random number between X and Y, with a new value every time step. |
numeric, numeric |
||
|
Rounds X up or down to the nearest whole number |
|||
|
Takes the name of a fixed-membership submodel and returns the number of instances that it has. |
|||
|
Takes the name of a fixed-membership submodel and returns the size of one of its dimensions |
submodel, numeric |
||
|
Returns the square root of X |
|||
|
Stops the simulation, displaying value of X in a popup message |
|||
|
Result is the sum of all elements of the argument |
numeric array/list |
||
|
Returns the current simulation time (the argument is ignored) |
|||
|
Returns the value from an array [X] or the list {X} whose position in the array or list corresponds to the largest value in the array [N] or list {N} |
numeric array/list, any array/list |
|
|
|
Returns the value from an array [X] or the list {X} whose position in the array or list corresponds to the smallest value in the array [N] or list {N} |
numeric array/list, any array/list |
|
In addition, a full range of trigonometric functions are provided.
In: Contents >> Working with equations >> Functions