I'm in a numerical analysis class and our assignment is to use Newton's method to estimate roots of a fuction after n steps. That is the easy part, but our professor decided that he wants to be able to input any function ( for example f(x) = 23x^4-3x^2-35x+2 ) at a promt and have our program still work. He doesn't care if we use any outside libraries as long as we don't use them for the method itself. Anyone have recommendations for a library (I can do it in C or C++) that will allow a user to enter a function like that and use it in calculations?