| 程序包 | 说明 |
|---|---|
| bee.cloud.core.db.work | |
| bee.tool |
| 类和说明 |
|---|
| Tool.Caller |
| 类和说明 |
|---|
| Calc
功能说明:表达式计算器 1)常规表达式,无参数,示例如下:
Calc.calculate("1+3*2-(5*6)/7");
输出结果:2.7142857142857144
2)带参数常规表达式,示例如下:
表达式为:x+y*2-(x*y)/2
a、设置参数值:
Map<String, Double> vals = new HashMap<String, Double>();
vals.put("x", 1.0);
vals.put("y", 2.0);
b、调用计算器:
Calc.calculate("x+y*2-(x*y)/2", vals);
c、输出结果:4.0
3)所支持的运算符包括:
加法:“2 + 2”
减法:“2 - 2”
乘法:“2 * 2”
除法:“2 / 2”
取模:“2 % 2”
正负号:“+2 - (-2)”
幂:“2 ^ 2”
4)支持内部函数包括
abs: absolute value
acos: arc cosine
asin: arc sine
atan: arc tangent
cbrt: cubic root
ceil: nearest upper integer
cos: cosine
cosh: hyperbolic cosine
exp: euler's number raised to the power (e^x)
floor: nearest lower integer
log: logarithmus naturalis (base e)
sin: sine
sinh: hyperbolic sine
sqrt: square root
tan: tangent
tanh: hyperbolic tangent
|
| CfgType
功能说明:
|
| Json
功能说明:
|
| Packages.Listener |
| PackageUtil.Listener
查询到每个类的监听器
|
| Path
功能说明:
|
| Pinyin
功能说明:汉字转成汉语拼音工具类
|
| Tool.Caller |
| Util
功能说明:
|
| Yaml
功能说明:
|