36 return T(1) + (v1 * v2) / T(3);
43 return std::abs(v0 - v1) * v2;
54 "myfunc(sin(x / pi), otherfunc(3 * y, x / 2, x * y))";
62 symbol_table.add_variable(
"y",y);
63 symbol_table.add_function(
"myfunc",mf);
65 symbol_table.add_constants();
71 parser.compile(expression_string,expression);
73 T result = expression.value();
74 printf(
"Result: %10.5f\n",result);
79 custom_function<double>();