KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Does anyone know a good approach/libs for doing algebraic computations in C++? I have an application being developed in c++ which needs to do algebraic computation. For now I built a C++ parser that accepts expressions in form of strings like "5 + (2 - MYFUNC(3))" which get tokenized into structs and then converted into postfix notation using the Shunting Yard algorithm and evaluated. The MYFUNC in these expression are my own defined functions that may do some complex computations. This is a high performance app, the expressions also have variables that are dynamically replaced with values and the expression is re-evaluated e.g. var1 + (2 - MYFUNC(var2)) -> with var1 and var2 replaced by some values during the course of the run and re-evaluated I'm using Linux and so far found Giac library but not sure if it's good, any feedback would be welcome. How do people generally approach this problem? The main language in this case is C++.
Tags (comma-separated)
Save Edits
Cancel