Questions tagged [muparser]

muParser is an extensible high performance math expression parser library written in C++. It works by transforming a mathematical expression into bytecode and precalculating constant parts of the expression.

muParser is an extensible high performance math expression parser library written in C++. It works by transforming a mathematical expression into bytecode and precalculating constant parts of the expression.

http://muparser.beltoforion.de/

8 questions
2
votes
1 answer

Can I pass a member function to mu::Parser::DefineFun()?

I'm using muParser to parse mathematical expressions, and I would like to add a function to the parser whose implementation will be provided by a non-static member function of a class. This excerpt from an example program should give an idea of what…
David Z
  • 128,184
  • 27
  • 255
  • 279
1
vote
0 answers

muParser in Xcode

I want to use the muparser library in an c++ application. I use Xcode und Mac Os X El Capitan to code. The library was installed using HomeBrew as brew install muparser but if I compile this sample code I get errors of the type Undefined symbols for…
DaPhil
  • 1,509
  • 4
  • 25
  • 47
0
votes
0 answers

How to fix Debug Assertion Failed error with buffer != nullptr when using muparser in Visual Studio with C++?

I am developing a C++ program using Visual Studio, and the muparser library to evaluate a mathematical expression. However, when I run my code, I get the following error message: This is the code I'm using: #include #include…
0
votes
1 answer

Windows 10 and Linux Muparser name allowable character sets are different?

In a C++ code using the muparser-2.2.6.1 I have parser names defined as class hierarchy: ClassA.classB.classC = value This name is parsed correctly on Linux, but rejected because it contains "." on windows 10, because it is outside the…
0
votes
1 answer

How to link a variable in muparserX and the shell

I have variables taken from a text file as such: ml1=1 ml2=2 ml3=3 ad1=1 ad2=2 ad3=3 I want to use these variables in otbcli_BandMath like so: otbcli_BandMath -il ${MY_INPUT}_B2.TIF -out B2TOA.TIF -exp '(ml2*im1b1)+ad2' But it keeps showing that…
Walshe_d
  • 157
  • 2
  • 8
0
votes
1 answer

Program crash when using MuparserX with QThreadPool

I want to run multiple MuparserX parsers concurrently using QThreadPool. Here's the code: #include #include #include #include "mpParser.h" struct Task: public QRunnable { void run() override { …
Carlton
  • 4,217
  • 2
  • 24
  • 40
0
votes
2 answers

C++ MuParser parsing not behaving as expected

I've just started playing with MuParser - seems like a really cool library! However, I'm stuck on parsing the following expression. Can anyone see from the code snippet below where I'm going wrong? Whatever 'count' is the result always seems to be…
user7227230
  • 59
  • 1
  • 9
0
votes
1 answer

How do I include muparser library in my Qt project?

I made a muparser.pri which had the following content, macx|win32|equals(build_muparser, "true")|!packagesExist(muparser){ message("Using bundled muparser") MUPARSER_DIR = src/rel/muparser DEPENDPATH += $$MUPARSER_DIR/include \ …