Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3622928
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:19:12+00:00 2026-05-18T23:19:12+00:00

Does anyone know a good approach/libs for doing algebraic computations in C++? I have

  • 0

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++.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:19:13+00:00Added an answer on May 18, 2026 at 11:19 pm

    Have a look on Bison and Flex Parser. The basic idea here is that a grammar file would be written and converted into C code which can be integrated into you application. Any book on Flex and Bison (http://www.amazon.com/Flex-Bison-Text-Processing-Tools/dp/0596155972) is good enough for initial reading.

    May be this helps you.!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have any suggestions for a good approach to finding all the CPAN
Does anyone know of a good way to have code run after their Android
Does anyone know good example of using CSS to create rounded corner box where:
Does anyone know a good place to look for basic principles and tutorials on
Does anyone know any good resources with tasks or problems to get practice in
Does anyone know a good way to test if one element, stored in a
Does anyone know of a good way to assert if a NameValueCollection is equivalent?
Does anyone know of a good way for a user to be able to
Does anyone know of a good way to remove vss source control bindings for
Does anyone know of a good tool for laying out class diagrams and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.