add exp4j
This commit is contained in:
parent
47d9fb42d4
commit
e71f64468b
@ -1,8 +1,9 @@
|
||||
# Summary
|
||||
|
||||
- [简介](./chapter_home.md)
|
||||
- [使用指南](./chapter_home.md)
|
||||
- [预处理](./chapter_preprocess.md)
|
||||
- [其它工具](./chapter_utils.md)
|
||||
- [附录](./appendix/index.md)
|
||||
* [正则表达式](./appendix/regexp.md)
|
||||
* [重命名规则](./appendix/rename_pattern.md)
|
||||
* [计算表达式参考手册](./appendix/exp4j.md)
|
||||
|
33
src/appendix/exp4j.md
Normal file
33
src/appendix/exp4j.md
Normal file
@ -0,0 +1,33 @@
|
||||
# 计算表达式参考手册
|
||||
|
||||
## 支持的运算符
|
||||
|
||||
* 加法运算: 2 + 2
|
||||
* 减法运算: 2 - 2
|
||||
* 乘法运算: 2 * 2
|
||||
* 除法运算: 2 / 2
|
||||
* 次幂运算: 2 ^ 2
|
||||
* 正负号: +2 - (-2)
|
||||
* 取模运算: 2 % 2
|
||||
|
||||
## 支持的函数
|
||||
|
||||
* abs: absolute value
|
||||
* acos: 反余弦
|
||||
* asin: 反正弦
|
||||
* atan: 反正切
|
||||
* cbrt: 立方根
|
||||
* ceil: 向上取整
|
||||
* cos: 余弦
|
||||
* cosh: 双曲余弦
|
||||
* exp: 指数次幂,即e的x次幂 (e^x)
|
||||
* floor: 向下取整
|
||||
* log: 取e为底的对数
|
||||
* log10: 取10为底的对数
|
||||
* log2: 取2为底的对数
|
||||
* sin: 正弦
|
||||
* sinh: 双曲正弦
|
||||
* sqrt: 平方根
|
||||
* tan: 正切
|
||||
* tanh: 双曲正切
|
||||
* signum: 取符号运算,大于0时为1,小于0时为-1,等于0时为0
|
@ -1 +1,3 @@
|
||||
# 简介
|
||||
# 使用指南
|
||||
|
||||
## 开始
|
||||
|
Loading…
x
Reference in New Issue
Block a user