C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html
This commit is contained in:
parent
36ef9e611f
commit
af8fd04155
539
exprtk.hpp
539
exprtk.hpp
File diff suppressed because it is too large
Load Diff
|
@ -2085,14 +2085,14 @@ inline bool run_test02()
|
||||||
str_b = test.b;
|
str_b = test.b;
|
||||||
str_c = test.c;
|
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",
|
printf("run_test02() - Computation Error: Expression: [%s]\tExpected: %19.15f\tResult: %19.15f\n",
|
||||||
test.expr.c_str(),
|
test.expr.c_str(),
|
||||||
(double)test.result,
|
(double)test.result,
|
||||||
(double)result);
|
(double)expr_result);
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue