Skip to content

Commit

Permalink
C++ Mathematical Expression Library (ExprTk) http://www.partow.net/pr…
Browse files Browse the repository at this point in the history
  • Loading branch information
ArashPartow committed Oct 5, 2016
1 parent 5fbbe49 commit d86f6da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exprtk_simple_example_05.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct myfunc : public exprtk::ifunction<T>

myfunc()
: exprtk::ifunction<T>(2)
{}
{ exprtk::disable_has_side_effects(*this); }

inline T operator()(const T& v1, const T& v2)
{
Expand Down
2 changes: 1 addition & 1 deletion exprtk_simple_example_12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void bubble_sort()
" upper_bound -= 1; "
" until (not(swapped) or (upper_bound == 0)); ";

T v[] = { T(2.2), T(1.1), T(5.5), T(4.4), T(3.3) };
T v[] = { T(9.9), T(2.2), T(1.1), T(5.5), T(7.7), T(4.4), T(3.3) };

symbol_table_t symbol_table;
symbol_table.add_vector("v",v);
Expand Down
1 change: 0 additions & 1 deletion exprtk_simple_example_15.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ void black_scholes_merton_model()
expression.register_symbol_table(symbol_table);

parser_t parser;

parser.compile(bsm_model_program,expression);

{
Expand Down

0 comments on commit d86f6da

Please sign in to comment.