E
E
Egorithm2020-01-16 19:44:33
Mathematics
Egorithm, 2020-01-16 19:44:33

What parser for mathematical expressions on Qt would you recommend?

Tell me, please, some library that could be put into a Qt project without much difficulty. I tried to put muParser, but it doesn't work. Either diarrhea or scrofula with this library.
I need to be able to pass a string to a function (with a variable, constants, arithmetic operations, trigonometric functions and parentheses for precedence) that would return a value.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mercury13, 2020-01-18
@EgoRusMarch

Egorithm , Great, now you have the *.a library file, the *.h include files, and the *.so shared library.
Tasks, in order of priority.
1. Force the program to compile, for this you need to register access to the *.h include-files in the project.
2. Force the program to link, for this you need to register access to *.a in the project (-lmuparser -L$$PWD).
3. Make the program run by dropping * .so where necessary.

V
Vladimir Olohtonov, 2020-01-17
@sgjurano

Is writing yourself not an option? There should be 100 lines of code if you use math and stack.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question