Skip to content

Commit eeb11d6

Browse files
committed
Updates to ExprTk
1 parent 14c59f4 commit eeb11d6

23 files changed

+33
-33
lines changed

exprtk/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# **************************************************************
33
# * C++ Mathematical Expression Toolkit Library *
44
# * *
5-
# * Author: Arash Partow (1999-2021) *
5+
# * Author: Arash Partow (1999-2022) *
66
# * URL: http://www.partow.net/programming/exprtk/index.html *
77
# * *
88
# * Copyright notice: *

exprtk/exprtk.hpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
******************************************************************
33
* C++ Mathematical Expression Toolkit Library *
44
* *
5-
* Author: Arash Partow (1999-2021) *
5+
* Author: Arash Partow (1999-2022) *
66
* URL: https://www.partow.net/programming/exprtk/index.html *
77
* *
88
* Copyright notice: *
@@ -40682,11 +40682,11 @@ namespace exprtk
4068240682
namespace information
4068340683
{
4068440684
static const char* library = "Mathematical Expression Toolkit";
40685-
static const char* version = "2.718281828459045235360287471352"
40686-
"66249775724709369995957496696762"
40687-
"77240766303535475945713821785251"
40688-
"66427427466391932003059921817413";
40689-
static const char* date = "20210101";
40685+
static const char* version = "2.7182818284590452353602874713526"
40686+
"624977572470936999595749669676277"
40687+
"240766303535475945713821785251664"
40688+
"274274663919320030599218174135966";
40689+
static const char* date = "20220101";
4069040690

4069140691
static inline std::string data()
4069240692
{

exprtk/exprtk_benchmark.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* ExprTk vs Native Benchmarks *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_01.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 1 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_02.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 2 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_03.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 3 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_04.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 4 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_05.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 5 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_06.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 6 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_07.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 7 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_08.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 8 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_09.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 9 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_10.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 10 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_11.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 11 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_12.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 12 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_13.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 13 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *
@@ -28,8 +28,8 @@ template <typename T>
2828
void savitzky_golay_filter()
2929
{
3030
typedef exprtk::symbol_table<T> symbol_table_t;
31-
typedef exprtk::expression<T> expression_t;
32-
typedef exprtk::parser<T> parser_t;
31+
typedef exprtk::expression<T> expression_t;
32+
typedef exprtk::parser<T> parser_t;
3333

3434
const std::string sgfilter_program =
3535
" var weight[9] := "
@@ -69,15 +69,15 @@ void savitzky_golay_filter()
6969
// Generate a signal with noise.
7070
for (T t = T(-5); t <= T(+5); t += T(10.0 / n))
7171
{
72-
T noise = T(0.5 * (rand() / (RAND_MAX + 1.0) - 0.5));
72+
const T noise = T(0.5 * (rand() / (RAND_MAX + 1.0) - 0.5));
7373
v_in.push_back(sin(2.0 * pi * t) + noise);
7474
}
7575

7676
v_out.resize(v_in.size());
7777

7878
symbol_table_t symbol_table;
79-
symbol_table.add_vector("v_in" , v_in);
80-
symbol_table.add_vector("v_out",v_out);
79+
symbol_table.add_vector("v_in" , v_in );
80+
symbol_table.add_vector("v_out", v_out);
8181

8282
expression_t expression;
8383
expression.register_symbol_table(symbol_table);

exprtk/exprtk_simple_example_14.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 14 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_15.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 15 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_16.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 16 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_17.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 17 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_18.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 18 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_simple_example_19.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Simple Example 19 *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

exprtk/exprtk_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* C++ Mathematical Expression Toolkit Library *
44
* *
55
* Examples and Unit-Tests *
6-
* Author: Arash Partow (1999-2021) *
6+
* Author: Arash Partow (1999-2022) *
77
* URL: http://www.partow.net/programming/exprtk/index.html *
88
* *
99
* Copyright notice: *

0 commit comments

Comments
 (0)