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

This commit is contained in:
Arash Partow 2014-10-29 07:52:12 +11:00
parent 36ef9e611f
commit af8fd04155
2 changed files with 344 additions and 201 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2085,14 +2085,14 @@ inline bool run_test02()
str_b = test.b;
str_c = test.c;
T result = expression.value();
T expr_result = expression.value();
if (not_equal(result,test.result))
if (not_equal(expr_result,test.result))
{
printf("run_test02() - Computation Error: Expression: [%s]\tExpected: %19.15f\tResult: %19.15f\n",
test.expr.c_str(),
(double)test.result,
(double)result);
(double)expr_result);
result = false;
}
}