input math function as string of characters

Hello everyone, right now I am working with our first machine problem in numerical analysis. The task is to make a c++ program that finds the root of a polynomial and transcendental functions using bisection, secant, regula-falsi, newton-raphson, and newton's second order method. I find it hard to code the transcendental function since unlike polynomials it has no general form.. I just wanna ask if it is possible to let the user input the function to be solved as a string of characters? If so, can anyone tell how to code it? On the other hand, if ever you know how to code the entire problem, i would really appreciate if you show me your code... I just can't do it by myself .. thank you ..best!
Yes, you have to parse the input. Also, there must be some general thought behind writing function(by user), because if you don't know what to expect, you don't know how to treat it.
thank you MatthewRock.. i can see .. it's a very long journey for me...
Topic archived. No new replies allowed.