This is a sample code using symbolic C++.
#include <iostream>
#include "symbolicc++.h"
using namespace std;
int main(void)
{
int i;
Symbolic x("x"), y, z("z");
y = (x + 2)^3;
cout<<" y = "<<y;
for ( i = 0 ; i < 1 ; i++)
{
y = df(y,x);
cout<<" y = "<<y<<endl;
}
return 0;
}
My question : is there any way to make symbolic variables to be input by user ?