View Single Post
Old 11-22-2004, 02:23 PM   #3 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Quote:
Are there any posts or websites that can point me in the right direction on how to begin on writing the code.
I am not familiar with those websites. However, I could give you a starter:
Suppose you have a function like:
2*x^3 - 5*x^2 + x + 60
You could make an array (or vector, try that) so that the function is modeled as:
Code:
vector<double> theFunction;
theFunction[0] = 60;
theFunction[1] = 1;
theFunction[2] = -5;
theFunction[3] = 2;
Do you see the logic? From here you could move on.
Start with this. See what problems you're facing in the process and try to solve them. If you try, then I will be there in case of trouble as usual.
__________________
Valmont is offline   Reply With Quote