概念地图

Axon2013 函数与运算符列表

日期:08-20 作者:花匠- 小 + 大

Axon2013好评如潮,更多在于除可视化概念(想法)的形成与梳理,更在于能进行图形计算,这就是所谓的数形结合吧,以下是整理出来的函数与运算符,这么一来,Axon2013那真的是强大了!(演示详见软件的Xon文件夹)


Axon2013 函数列表

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).

 

Functions based on Links

The following Functions arebased on other Objects linked (i.e. pointing) to it. The empty brackets ()cannot be omitted. The first three { and(), or(), inv() } are Logical Functionsthat require the input to be 0 or 1 only, and are used mainly as logic gates.If the input value is not 0 or 1, they are converted to 0 or 1 as follows:
Any input less than 1 becomes 0, and any input greater than 1 becomes 1.

and()

or()

inv()

ave()

count()

var()

max()

min()

sum()

sumwt()

wtsum()

Logical AND of all Objects pointing to it. Input value is 0 or 1

Logical OR of all Objects pointing to it. Input value is 0 or 1

Logical NOT of the 1 Object pointing to it. Input value is 0 or 1

Average value of Objects pointing to it

Total number of Objects pointing to it

Variance of Objects pointing to it

Maximum value of all Objects pointing to it

Minimum value of all Objects pointing to it

Adds all values of Objects pointing to it

Adds all values of Link Labels pointing to it

Weighted sum, as in sum( ), but weighted by the Labels. Empty Labels are assumed to contain a value of 1.

 

Axon2013 运算列表

+

-

*

/

div
 

^

mod

Plus, e.g. 2+3.1=5.1

Minus, e.g. 4-5.2=-1.2

Multiply, e.g. 2*3=6

Divide, e.g. 3/2=1.5

Integer division, e.g. 10 div 6 =1, 2 div 3 =0. For negative values, note that:
-2 div 3 = -1, -3 div 3 =-1, -4 div 3 = -2, 4 div -3 = -2, 3 div -3 = -1, 2 div -3 = -1.

Power, e.g. 3^2=9, 2^3=8. Numbers need not be integral.

Modulo, e.g. 10 mod 8 = 2, 8 mod 8 = 0. For negative values, note that -5 mod 3 = 1 (not -2).

 

 

 

The following are Logical Operators which result in either 1 (for True) or0 (for False).

>

<

&

|

=

#

Logical Greater Than, e.g. (3>2)=1, where true=1

Logical Less Than, e.g. (3<2)=0, where false=0

Logical And, e.g. (1&1)=1, (1&0)=0

Logical Or, e.g. (0|1)=1, (0|0)=0

Logical Equal, e.g. (3=3)=1, (3=2)=0

Logical Not Equal, e.g. (3#4)=1, (4#4)=0

 

上一篇:概念地图工具:Axon2013花匠绿色汉化版汉化

下一篇:VUE 可视化理解环境3.3.0(免费中文版)(软件与使用手册下载..

沪公网安备 31011502006143号  | 沪ICP备 05006488号  |  QQ:156617
|

Copyright © 2024 天人文章管理系统 授权使用


首页
分享
留言 搜索 我的