add exp4j

This commit is contained in:
Dreagonmon 2023-12-21 21:22:40 +08:00
parent 47d9fb42d4
commit e71f64468b
3 changed files with 38 additions and 2 deletions

View File

@ -1,8 +1,9 @@
# Summary # Summary
- [简介](./chapter_home.md) - [使用指南](./chapter_home.md)
- [预处理](./chapter_preprocess.md) - [预处理](./chapter_preprocess.md)
- [其它工具](./chapter_utils.md) - [其它工具](./chapter_utils.md)
- [附录](./appendix/index.md) - [附录](./appendix/index.md)
* [正则表达式](./appendix/regexp.md) * [正则表达式](./appendix/regexp.md)
* [重命名规则](./appendix/rename_pattern.md) * [重命名规则](./appendix/rename_pattern.md)
* [计算表达式参考手册](./appendix/exp4j.md)

33
src/appendix/exp4j.md Normal file
View 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

View File

@ -1 +1,3 @@
# 简介 # 使用指南
## 开始