What library can parse & solve a simple math expression in C++ [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I have an arbitrary expression in a string. Let's say:
y=12*x+34
I will have x or y and I need to solve for the other.
muParser does a brilliant job of solving the first form given x but it and all the other math parsers I've found cannot perform any sort of manipulation to turn the expression into:
x=(y-34)/12 so the other could be solved if I had y instead of x.
Is there a C/C++ library out there that isn't GNU encumbered that can be used to solve this?

It looks like you want to embed a proper CAS. Try GiNaC, if it is not powerful enough, think of embedding Maxima or Axiom (both are very heavyweight and runs on top of Common Lisp).

Related

What does the logarithm code look like in C++? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I can't search what does the logarithm code look like in C++? What the code of the logarithm function looks like in C++ in the library cmath? Exactly the code. I don't need to figure out how I can get the logarithm. I want to know how this algorithm works.
You would be very disappointed. On modern processors, the C++ compiler inserts the assembly instruction that obtains it from the floating-point ALU. There is no code.
That is implementation specific and therefore can vary from system to system.
Since there are several ways to compute a logarithm, a good book on this kind of algorithm is a good start.

Native library for stereo-images and computing disparity/depth map [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
For a more complex project, I need to compute the approximate, relative distances of objects from two images (from stereo-cameras). Practically what this neat tutorial explains: https://chrisjmccormick.wordpress.com/2014/01/10/stereo-vision-tutorial-part-i/ and with a result like that
Think I shouldn't be reinventing the wheel for this project and since speed is very important (realtime from two videostreams) I'm looking for a native library (preferably in C++ where the whole project is written in) for this task.
Does anyone have a suggestion?
Open source would be greatest but not mandatory.
Huge thanks in advance!
try with LIBELAS library (Library for Efficient Large-scale Stereo Matching).
Best!

data frame library in C++ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
How might one implement data frame in R, Python, and other languages using C++?
In general, data.frame solves a problem which is solved fundamentally differently in C++ (and other languages) – namely via class hierarchies, or, in the simplest case, via a vector of tuples.
Since you haven’t given specifics it’s hard to know what exactly you are after but if it’s ease of computation, Armadillo is a good linear algebra library for C++ (one among many). I haven’t yet found a good statistics framework for C++ – I suggest simply sticking with R for that.

Symbolic Math Library in C/C++/Obj-C [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am trying to implement a graphing calculator on the iPhone. I am looking for a library that can take strings of expressions or functions and let me manipulate them (find derivatives, intercepts, zeros, etc). Does anything like this exist?
There's GiNaC for C++. GPL-licensed and actively maintained, last update only a month ago. I found old links to many others that don't seem to exist anymore; perhaps people simply found it easier to use GiNaC?

I am looking for C++ wrapper around built-in Perl functions [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
A while ago I found a library that allowed calling individual built-in Perl functions in C++, I cannot find it now.
Can you tell me where I can find it on the net?
Thanks.
You might want to try libperl++. It's still kind of beta, but the part that involves calling perl from C++ has been mature for quite some time. It's much easier to use than the perl API itself.
Full disclosure: I'm the author of libperl++
Read perlembed and Extending and Embedding Perl.
Try the following:
perl xs c++
C::DynaLib