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

This commit is contained in:
Arash Partow
2014-05-31 07:38:57 +10:00
parent 6b86ec0deb
commit 1bf1073cd8
8 changed files with 145 additions and 38 deletions

View File

@ -36,7 +36,7 @@ void trig_function()
exprtk::parser<T> parser;
parser.compile(expression_string,expression);
for (x = T(-5.0); x <= T(+5.0); x += 0.001)
for (x = T(-5); x <= T(+5); x += T(0.001))
{
T y = expression.value();
printf("%19.15f\t%19.15f\n",x,y);