Math functionsSome common math functions. The formalized behavior references a variety of input and output symbols, which can stand for variables or functions of the agent's software. Constants are constant decimal values. | Name | Type | Measure | Description | | random | decimal | | A random number between 0 and 1 |
| Name | Measure | Description / Parameters | | distance-to | mm | Calculates the distance to a specified point on the field | | | | Parameter | Measure | Range | Description | | distance-to.x | mm | -3000..3000 | The x position on the field | | distance-to.y | mm | -2000..2000 | The y position on the field |
| | angle-to | deg | Calculates the angle to a specified point on the field | | | | Parameter | Measure | Range | Description | | angle-to.x | mm | -3000..3000 | The x position on the field | | angle-to.y | mm | -2000..2000 | The y position on the field |
| | sgn | -1/1 | the sign of a number | | | | Parameter | Measure | Range | Description | | sgn.value | | decimal | The value for that the sign shall be calculated |
| | abs | | the absolute value of a number | | | | Parameter | Measure | Range | Description | | abs.value | | decimal | The value for that the absolute value shall be calculated |
| | min | mm | Calculates the minimum of two values | | | | Parameter | Measure | Range | Description | | min.value0 | mm | .. | one value | | min.value1 | mm | .. | other value |
| | max | mm | Calculates the max of two values | | | | Parameter | Measure | Range | Description | | max.value0 | mm | .. | one value | | max.value1 | mm | .. | other value |
| | sin | | the sin function | | | | Parameter | Measure | Range | Description | | sin.alpha | deg | -180..180 | alpha |
| | cos | | the cos function | | | | Parameter | Measure | Range | Description | | cos.alpha | deg | -180..180 | alpha |
| | normalize | deg | Normalized angle | | | | Parameter | Measure | Range | Description | | normalize.angle | deg | | Angle to be normalized |
| | freeze | | The frozen value | | | | Parameter | Measure | Range | Description | | freeze.value | | decimal | Value to be frozen |
| | is-in-interval | | returns 1 if value is between a and b | | | | Parameter | Measure | Range | Description | | is-in-interval.a | | | | | is-in-interval.b | | | | | is-in-interval.value | | | |
| | save-value | | | | | | Parameter | Measure | Range | Description | | save-value.index | number | 0..250 | | | save-value.value | | | |
| | get-value | | | | | | Parameter | Measure | Range | Description | | get-value.index | number | 0..250 | |
|
Output Symbols| Name | Type | Measure | Description | | math.unfreeze-value | enumerated | true
| Specifies, if the freeze function will freeze the next value. |
|