sdleiF | ||
float pi RO | pi ~ 3.14 | |
float pi2 RO | pi/2 ~ 1.57 | |
float pi4 RO | pi/4 ~ 0.78 | |
float rnd01 RO | random number [0..1) | |
float rndGaussStd RO | random number (normal distribution) | |
int seed | random seedRandom number generator seed. Note: Math.seed influences all further random activity in the simulator, not just the results of functions in this class. Note #2: When read, the value behaves just like a regular variable that stores the previously assigned value. It does NOT reflect the internal random generator seed that changes every time a random number has been generated. | |
float time RO | current timeNumber of seconds since the Epoch (00:00:00 UTC/GMT, January 1, 1970) | |
float twopi RO | 2*pi ~ 6.28 | |
snoitcnuF | ||
function abs(float)returns float | absolute value | |
function acos(float)returns float | arc cosinus | |
function asin(float)returns float | arc sinus | |
function atan(float)returns float | arc tangent | |
function atan2(float y, float x)returns float | arc tangent of y/x | |
function cos(float)returns float | cosinus | |
function exp(float)returns float | exponent | |
function log(float)returns float | logarithm; base = e | |
function max(untyped, untyped)returns untyped | maximum | |
function min(untyped, untyped)returns untyped | minimum | |
function pow(float a, float b)returns float | power, a^b | |
function random(int num)returns int | integer random number0..num-1 | |
function randomize() | set random seedSet random seed for the random number generator. | |
function rndCustom(Vector)returns float | random numberthe parameter describes the desired random distribution, being a sum of uniform distributions, eg. rndCustom([-10,-1, -1,1, 1,10]) defines 3 uniform distribution intervals [-1,10) [-1,1), [1,10) | |
function rndGauss(float mean, float standard_deviation)returns float | random number (selectable std.dev.)rndGaussStd is rndGauss(0,1) | |
function rndUni(float begin, float end)returns float | random number (uniform distribution)[begin..end) | |
function sigmoid(float)returns float | sigmoid function = 2/(1+exp(-x))-1 | |
function sign(float)returns int | sign (-1, 0 or 1) | |
function sin(float)returns float | sinus | |
function sqrt(float)returns float | square root | |
function tan(float)returns float | tangent |
Global context |