mathematical-expression-cpp-dll
DLL Download
File List
Include.zip
The Header file directory of the library. You can unzip the directory and import it into your project, so that your project can support the library.
mathematical_expression_cpp_WINx64.dll
The source code of this library is a DLL dynamic library file that has been successfully compiled in the Win64 environment. You can directly link this file to your project.
include.zip
该库头文件目录,您可以将此目录解压后导入到您的项目中,使得您的项目能够支持该库。
mathematical_expression_cpp_WINx64.dll
该库源码在 win64 环境下编译成功的dll动态库文件,您可以直接将此文件链接到您的项目中。
数学表达式-cpp 更新日志
更新版本:1.0.3 -> 1.0.4
- 更新版本: 1.0.3 -> 1.0.4
- 更新时间: 2024年03月22日
- 参与更新任务的作者列表
| 名称 | GitHub主页 | 联系方式 |
|---|---|---|
| BeardedManZhao | https://github.com/BeardedManZhao | liming7887@qq.com |
| ------ | ------ | ------ |
注意事项
1.0.2 以及 以后的版本中 针对函数的注册操作不能向后兼容,如果是在1.0.2版本以以后的版本 请使用下面的方式注册函数
// 准备函数 这里的函数的作用是将 3 个参数求和
auto myFun = [](const ME::MEStack<double>& v) {
double res = 0;
for (int i = 0; i < v.size(); ++i){
res += v.get(i);
}
return res;
};
// 注册函数 将我们的函数注册成为 DoubleValue 的名称
ME::FunctionManager::append("sum", myFun);
更新日志
-
在旧版本中,如果我们将一个没有使用到函数的表达式传递给多参函数计算组件会出现错误,现在此问题已解决
-
针对数学函数表达式 解析为函数 与 注册为函数的逻辑实现完毕!