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 ...
Wiltz asked 28/10 at 1:13

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 ...
Hypodermis asked 29/6, 2023 at 18:25

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)...
Restitution asked 8/2, 2023 at 21:18

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 ...
Eweneck asked 6/5, 2021 at 18:27

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 ...
Huguenot asked 26/11, 2018 at 10:13

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...
Teddy asked 6/12, 2017 at 11:4

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...
Citizenship asked 18/9, 2013 at 14:54

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...
Darnall asked 23/6, 2021 at 16:47

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...
Matronna asked 15/2, 2016 at 18:28

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...
Baikal asked 3/3, 2020 at 12:57

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...
Particia asked 17/2, 2020 at 4:35

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.
Plebeian asked 26/8, 2016 at 14:40

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 == '...
Musclebound asked 11/4, 2017 at 12:56

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...
Libertinage asked 8/3, 2016 at 0:3

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. ...
Kinsman asked 4/11, 2015 at 22:32

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...
Neoarsphenamine asked 24/9, 2015 at 16:23
1

© 2022 - 2024 — McMap. All rights reserved.