exprtk Questions
1
Solved
I have the following function that takes a symbol table and adds a composited function to the symbol table:
void add_function(exprtk::symbol_table<double>& symtab) {
using compositor_t ...
1
Solved
When running and compiling a simple equation more than once using ExprTK, I encounter a segmentation fault or address boundary error. Surprisingly, the issue disappears when I exclude the exprtk::c...
Covin asked 21/1 at 15:46
2
Is it possible to get the returned strings from an Exprtk expression? The code below returns NaN as answer, which is to be expected. But getting the string, in this case 'One', only seems possible ...
1
Solved
I would like to query all available function names from a symbol_table. I can see that symbol_table has methods for getting variables, vectors, and stringvars (i.e. symbol_table::get_variable_list)...
3
I have been using the ExprTk library quite frequently in the past in order to further process large output files generated with Mathematica (containing mathematical expressions) in C.
Until now, I ...
1
The problem is as follows.
A text file contains millions of lines of arithmetic - which need quick evaluation.
I have been exploring my options for this problem and have written a little script usi...
Ischium asked 21/7, 2017 at 16:41
1
I asked very specific question here but I realized where the problem is and it's slightly more general.
Seeing ALL exprtk examples and code pieces, everyone uses exprtk's basic metod add_variable ...
1
I want to call a function of a class from exprtk.
(http://www.partow.net/programming/exprtk/)
I want to register a function with this toolkit with symbol_table.add_function.
Therefore it is req...
2
Solved
I am attempting to use a simple expression such as the following and the result should be that the value of z becomes 1. However nothing seems to be happening any suggestions on how I could resolve...
1
Solved
I'm trying to run this code:
exprtk::parser<bool> parser;
exprtk::expression<bool> expression;
parser.compile("5 > 6", expression);
std::cout << expression.value() &l...
3
Solved
I'm trying to create a Qt application and I need a math expression evaluator to evaluate things like this e.g. (4+5)*2-9/3.
I included the .hpp file of this library (http://www.partow.net/programmi...
2
I'm trying to use the ExprTk mathematical expression parser library within a class whose objects are to be stored in a vector of objects, which is a member variable of another class; however, when ...
Pogge asked 15/10, 2020 at 17:50
1
Solved
I want to get a list of the symbols out of an expression in ExprTk (not the ones I registered, but the ones that are in the expression.
E.g. when the expression is
const std::string expression_str...
1
Solved
I'm trying to learn how to use the parsing library exprtk with objects of a custom class - I'm still learning C++, tbh but I can write functional non-OO code.
I am trying to follow an example from...
1
I have some troubles compiling a c++ code including exprtk. I want to compile an given example of the package (I called it parser.cpp):
#include <cstdio>
#include <string>
#include "ex...
Libertylibia asked 20/8, 2016 at 15:2
2
Solved
When I define an expression in my exprtk string, like
var x := sqrt(y);
and I try to add another variable
var X := 2*z;
do I get a conflict? Thanks in advance.
1
I am trying to create a parser for boolean expressions. The symbols inside the expression are read from an XML-like data structure.
It is simple to implement a parser for something like
a.b == '...
1
Solved
I am trying to use the parser from this site:
http://www.partow.net/programming/exprtk/
on VS 2015. Unfortunately, I get the following error while compiling exprtk_simple_example_01 (one of the e...
2
I need to write a program in which string expressions are evaluated quite frequently. An example of an expression is below:
"x0*a0*a0+x1*a1+x2*a2+x3*a3+x4*a4....."
The expressions can be long an...
Roee asked 27/3, 2014 at 19:20
0
Instead of programming a math parser myself, I'm trying to implement the exprtk (exprtk) into my project. It works fine if I implement it in a console project. However, it fails in my CLR project. ...
2
Solved
I am trying to compile the ExprTk library with more precision than long double. I thought the simplist would be to try GCC's __float128 but I am getting the following compilation error and am not s...
1
© 2022 - 2024 — McMap. All rights reserved.