Possible Duplicate:
Is there any kind of “expression class” (C++)
I want to make a class that holds a function that is defined at run time. i.e.
function function1("x*sin(3.141*x)");
I want to do things like find roots and it would be better not having to rewrite the program each time.
edit: I am looking at lua.