C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html

This commit is contained in:
Arash Partow
2014-03-22 00:56:37 +11:00
parent 904e74b939
commit 77897604bc
4 changed files with 140 additions and 114 deletions

View File

@ -38,7 +38,7 @@ template<typename T>
void custom_function()
{
typedef exprtk::expression<T> expression_t;
std::string expression_string = "myfunc(sin(x*pi),y/2)";
std::string expression_string = "myfunc(sin(x * pi),y / 2)";
T x = T(1);
T y = T(2);
myfunc<T> mf;