Questions tagged [exprtk]

Tag for the C++ Mathematical Expression Library

Tag for the C++ Mathematical Expression Library at http://www.partow.net/programming/exprtk/index.html

27 questions
1
vote
0 answers

Can't find erf, erff, etc. compiling under 10.2

I try to compile C++ Mathematical Expression Library (http://www.partow.net/programming/exprtk/index.html) by Arash Parto. Unfort. I do not succeed using 10.2. erf, erff, etc. are not found. File try to compile: #pragma hdrstop #pragma…
aekeller
  • 11
  • 3
1
vote
0 answers

Assigning exprtk variables as vector members

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 as double variab; exprtk::symbol_table
Bagnarol
  • 13
  • 6
1
vote
1 answer

C++ Exprtk vs Python eval()

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 using the nice exprtk C++ library. The code works and…
Yeti
  • 425
  • 4
  • 15
0
votes
1 answer

Retrieving the string result from an Exprtk expression

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 using a return[] statement or by using an explicit…
0
votes
0 answers

Using wide characters in Exprtk

Is there a built-in method to use wide (16-bit) character strings in Exprtk? I have modified the source code exprtk.hpp to accomplish this and it seems to work correctly. It is not my preferred way to go about it though as I'm not sure that I…
0
votes
0 answers

Compilation error: 'exprtk.hpp' file not found in C++

A compilation error occurred while trying to build my code. The error message states that the file "exprtk.hpp" cannot be found. I checked again and confirmed that the file exists in the specified location. #include #include…
0
votes
0 answers

Get list of available functions from exprtk::symbol_table

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). However, I don't see a corresponding…
nickexists
  • 404
  • 1
  • 4
  • 12
0
votes
1 answer

How to use exprtk to evaluate an equasion as bool?

I'm trying to run this code: exprtk::parser parser; exprtk::expression expression; parser.compile("5 > 6", expression); std::cout << expression.value() << "\n"; But I get this error: 'exprtk::expression::operator T(void) const':…
SJS
  • 139
  • 1
  • 3
  • 13
0
votes
2 answers

Math Parser for Complex Numbers in C (ExprTk)

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 exclusively used this library to process expressions…
Marvin
  • 19
  • 6
0
votes
1 answer

Using exprtk with objects of a custom class

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 the repo, but with objects that I'd have…
Pranav Rai
  • 160
  • 4
  • 8
0
votes
0 answers

Crashes after parsing the equation

The application want to parse a string equation to mathematics and return the data to user. for this purpose the library is used is exprtk for easy analysis I have shared minimum working code minimum working code when application parses the string…
0
votes
0 answers

Exprtk evaluating and returning string expressions

I'm evaluating using exprtk to evaluate string expressions (e.g., "a"+"b") an, as such, I've tried to create a std::string parser (exprtk::parser). This throws out a bunch of errors in compilation about multiple overloaded methods that instantiate…
zync
  • 463
  • 3
  • 17
1
2