abs arctan cos exp fact getpara if_then_else incpara index int ln log max maxpos min minpos normal normalp not poisson random round setobjpos setpara sign sin sqrt sumrect tan trunc uniform | Absolute value, e.g. abs(-3) = 3 Arctangent, e.g. arctan(1)=0.7853981634 Cosine, cos(A) where A is in radians Exponential, e.g. exp(2)=7.3890560989 Factorial, e.g. fact(4)=24 (Input is first truncated to an integer using trunc() ) Get the Axon file Parameter, e.g. getpara(1) returns the background color. See Format.txt for a list of parameters Conditional expression if_then_else(Condn,Exp1,Exp2), returns Exp1 if Condn=1, else returns Exp2. e.g. if_then_else((Random>0.5),101,102) Increment the Axon file Parameter. e.g. incpara(2000,1) changes p_(2000,7) to p_(2000,8). The returned value is the new parameter value (8 in this example). Find Nth item, index(N,V1,V2,...) returns the Nth item in (V1,V2,...) e.g. index(2,2,4,6,8)=6 Integer value, e.g. int(3.14)=3, int(2.98)=2 Logarithm to the base e (i.e. natural log) Logarithm to the base 10 Maximum, e.g. max(2,3)=3, max(1,3,8,5)=8, etc. Maximum position, e.g. maxpos(5,7,9,2)=3, maxpos(3,2,5,9,7)=4, etc. Minimum, e.g. min(2,3)=2, min(1,3,8,5)=1, etc. Minimum position, e.g. minpos(5,7,9,2)=4, minpos(3,2,5,9,7)=2, etc. The Normal Distribution, normal(Mean,StdDev). Each call to normal() returns a new random variable The Truncated Normal Distribution which contains only the positive part of the Normal Distribution Logical Negation, not(0)=1, else =0 The Poisson Distribution, poisson(T), where T is the average interarrival time. Each call to poisson() returns a new random variable. random(N) returns a random integer 0,1,2,...N-1. Each call to random returns a new random integer. random(V1,P1,V2,P2,...) returns a value (V1, V2,...) with the corresponding probability (P1, P2,...). Round value, e.g. round(3.14)=3, round(2.98)=3 Set the position of the Object with specified Ref#. The latter can be obtained from the Object Properties dialog box. The format is setobjpos(Ref#,X,Y,Lev). This function is thus able to move an Object around during a simulation or upon a mouse click. Set the Axon file Parameter, e.g. setpara(1,3) will change the background color to 3 (dark green). See Format.txt for list of Parameters. General format is setpara(Para#,ParaValue). The ParaValue is returned. sign(A) returns -1(A negative), 0(A=0), 1(A positive) e.g. sign(2)=1, sign(-2)=-1 Sine, sin(A) where A is in radians Square Root, e.g. sqrt(4)=2 Sum of all Objects within a Rectangle Shape with specified Ref# e.g. sumrect(25) Tangent, tan(A) where A is in radians Truncate value, e.g. trunc(3.14)=3, trunc(2.98)=2 The Uniform Distribution uniform(From,To). Each call to uniform() returns a new random number in the specified range. e.g. uniform(0.0,5.0) returns a uniformly random number in the range [0.0,5.0). |