hi, im a beginner in using C++...

i have a project due in a few days and i've been trying to do the program for a week now... we're supposed to make a program that would allow the user to enter any polynomial equation (always = 0), asks the user the interval and number of iterations and solve it using secant method...

for example, the user entered the polynomial equation of 0.5x^4 + 2x^2 - x + 4 = 0, interval [-0.25, 0], no of iterations is 5, the result should be the following:

[IMG]http://i37.tinypic.com/339qefn.jpg[/IMG]

the screen should look like this when program is run:

[IMG]http://i33.tinypic.com/3325hs4.jpg[/IMG]

i already have a code for the secant method formula part for computing the new x sub n, however i don't have a clue as to how i would make a code enabling the user to enter the polynomial equation to be solved and substituting the new x (which is the new computed x sub n obtained from the secant formula) to the polynomial equation…

the question is what I want possible?... is there any kind of library that I need for wat I want?..

hope u guys can help coz honestly im no good in programming… I'm getting crazy with this project coz due is in 2 days time (sobs)… please help…

for additional information, for the secant part of the program… the code is the following:

```
for(int i=1;i<=n;i++)
{
c[i+1]=c[i]-(f(c[i]) * (c[i]-c[i-1])) / (f(c[i])-f(c[i-1]));
cout <<"c(" << i+1 <<") = "<< c[i+1] <<"\n";
}
```