The following table lists the mathematical routines available in GENESIS. These routines include basic math, trigonometric, and random number routines. (Remember that GENESIS also has standard arithmetic operators such as + for addition, - for subtraction, etc.)
Routine | Description |
abs | Returns absolute value of number. |
exp | Returns ``e'' raised to specified power. |
gaussian | Returns value from Gaussian (Normal) distribution. |
log | Returns logarithm (base ``e'') of number. |
max | Returns maximum value of two numbers. |
min | Returns minumum value of two numbers. |
pow | Returns a number raised to a specified power. |
round | Rounds decimal number to nearest integer value. |
sqrt | Returns square root of positive number. |
trunc | Returns integer part of number. |
acos | Returns angle (in radians) corresponding to given cosine. |
asin | Returns angle (in radians) corresponding to given sine. |
atan | Returns angle (in radians) corresponding to given tangent. |
cos | Returns cosine for given angle (specified in radians). |
sin | Returns sine for given angle (specified in radians). |
tan | Returns tangent for given angle (specified in radians). |
rand | Returns a random number falling in a specified range. |
randseed | Initializes random-number generator with new random seed. |
floatformat | Sets format for display of variables of type float. |