From d5d716c35a064d72e776c5ce90d3d57ec7b4c567 Mon Sep 17 00:00:00 2001 From: Arash Partow Date: Tue, 31 Dec 2013 04:01:20 +1100 Subject: [PATCH] C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html --- exprtk_simple_example_09.cpp | 6 +++--- exprtk_simple_example_10.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exprtk_simple_example_09.cpp b/exprtk_simple_example_09.cpp index 5654d46..b19eb37 100644 --- a/exprtk_simple_example_09.cpp +++ b/exprtk_simple_example_09.cpp @@ -31,7 +31,7 @@ void primes() T x = T(0); - exprtk::symbol_table symbol_table; + symbol_table_t symbol_table; symbol_table.add_constants(); symbol_table.add_variable("x",x); @@ -109,7 +109,7 @@ void primes() expression2.register_symbol_table(symbol_table); expression3.register_symbol_table(symbol_table); - exprtk::parser parser; + parser_t parser; parser.compile(expression_str1,expression1); parser.compile(expression_str2,expression2); @@ -133,4 +133,4 @@ int main() { primes(); return 0; -} +} \ No newline at end of file diff --git a/exprtk_simple_example_10.cpp b/exprtk_simple_example_10.cpp index 93c92cc..cf016b3 100644 --- a/exprtk_simple_example_10.cpp +++ b/exprtk_simple_example_10.cpp @@ -32,7 +32,7 @@ void newton_sqrt() T x = T(0); - exprtk::symbol_table symbol_table; + symbol_table_t symbol_table; symbol_table.add_constants(); symbol_table.add_variable("x",x); @@ -68,7 +68,7 @@ void newton_sqrt() expression.register_symbol_table(symbol_table); - exprtk::parser parser; + parser_t parser; parser.compile(expression_str,expression);