CppCodeGenVar¶
CppCodeGenVar is an open source C++ library for mathematical symbolic computation through C++ code.
A very simple example of what it can do is this program:
#include <codegenvar/Symbol.h>
#include <cmath>
#include <iostream>
using namespace codegenvar;
int main()
{
Symbol a("a"), b("b"), c("c");
Symbol x = sqrt(a + b*c) * pow(b, 2) / c;
std::cout << x.toString() << std::endl;
return 0;
}
Which produces this output:
pow(b, 2)*sqrt(a + b*c)/c
For something more useful, see Examples.
The project is available at its GitHub Site .