C++ Mathematical Expression Library (ExprTk) https://www.partow.net/programming/exprtk/index.html
This commit is contained in:
parent
17ba4d15e2
commit
806c519c91
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@
|
|||
# **************************************************************
|
||||
# * C++ Mathematical Expression Toolkit Library *
|
||||
# * *
|
||||
# * Author: Arash Partow (1999-2021) *
|
||||
# * Author: Arash Partow (1999-2022) *
|
||||
# * URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
# * *
|
||||
# * Copyright notice: *
|
||||
|
|
42
exprtk.hpp
42
exprtk.hpp
|
@ -2,7 +2,7 @@
|
|||
******************************************************************
|
||||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: https://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
@ -37903,45 +37903,49 @@ namespace exprtk
|
|||
|
||||
virtual ~base_func() {}
|
||||
|
||||
#define assign(Index) \
|
||||
#define exprtk_assign(Index) \
|
||||
(*v[Index]) = v##Index; \
|
||||
|
||||
inline void update(const T& v0)
|
||||
{
|
||||
assign(0)
|
||||
exprtk_assign(0)
|
||||
}
|
||||
|
||||
inline void update(const T& v0, const T& v1)
|
||||
{
|
||||
assign(0) assign(1)
|
||||
exprtk_assign(0) exprtk_assign(1)
|
||||
}
|
||||
|
||||
inline void update(const T& v0, const T& v1, const T& v2)
|
||||
{
|
||||
assign(0) assign(1)
|
||||
assign(2)
|
||||
exprtk_assign(0) exprtk_assign(1)
|
||||
exprtk_assign(2)
|
||||
}
|
||||
|
||||
inline void update(const T& v0, const T& v1, const T& v2, const T& v3)
|
||||
{
|
||||
assign(0) assign(1)
|
||||
assign(2) assign(3)
|
||||
exprtk_assign(0) exprtk_assign(1)
|
||||
exprtk_assign(2) exprtk_assign(3)
|
||||
}
|
||||
|
||||
inline void update(const T& v0, const T& v1, const T& v2, const T& v3, const T& v4)
|
||||
{
|
||||
assign(0) assign(1)
|
||||
assign(2) assign(3)
|
||||
assign(4)
|
||||
exprtk_assign(0) exprtk_assign(1)
|
||||
exprtk_assign(2) exprtk_assign(3)
|
||||
exprtk_assign(4)
|
||||
}
|
||||
|
||||
inline void update(const T& v0, const T& v1, const T& v2, const T& v3, const T& v4, const T& v5)
|
||||
{
|
||||
assign(0) assign(1)
|
||||
assign(2) assign(3)
|
||||
assign(4) assign(5)
|
||||
exprtk_assign(0) exprtk_assign(1)
|
||||
exprtk_assign(2) exprtk_assign(3)
|
||||
exprtk_assign(4) exprtk_assign(5)
|
||||
}
|
||||
|
||||
#ifdef exprtk_assign
|
||||
#undef exprtk_assign
|
||||
#endif
|
||||
|
||||
inline function_t& setup(expression_t& expr)
|
||||
{
|
||||
expression = expr;
|
||||
|
@ -40682,11 +40686,11 @@ namespace exprtk
|
|||
namespace information
|
||||
{
|
||||
static const char* library = "Mathematical Expression Toolkit";
|
||||
static const char* version = "2.718281828459045235360287471352"
|
||||
"66249775724709369995957496696762"
|
||||
"77240766303535475945713821785251"
|
||||
"66427427466391932003059921817413";
|
||||
static const char* date = "20210101";
|
||||
static const char* version = "2.7182818284590452353602874713526"
|
||||
"624977572470936999595749669676277"
|
||||
"240766303535475945713821785251664"
|
||||
"274274663919320030599218174135966";
|
||||
static const char* date = "20220101";
|
||||
|
||||
static inline std::string data()
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* ExprTk vs Native Benchmarks *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 1 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 2 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 3 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 4 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 5 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 6 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 7 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 8 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 9 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 10 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 11 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 12 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 13 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 14 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 15 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 16 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 17 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 18 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Simple Example 19 *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* C++ Mathematical Expression Toolkit Library *
|
||||
* *
|
||||
* Examples and Unit-Tests *
|
||||
* Author: Arash Partow (1999-2021) *
|
||||
* Author: Arash Partow (1999-2022) *
|
||||
* URL: http://www.partow.net/programming/exprtk/index.html *
|
||||
* *
|
||||
* Copyright notice: *
|
||||
|
|
Loading…
Reference in New Issue