I'm trying to write a code that calculates Newton's method, not an assignment, just for myself.
I'm having trouble with the function I put together to estimate values that will bring the polynomial close to 0.
int estimate(float fx, int s)
float v1, v2=0, est1=0, est2=0;
printf("est1=%.0f v1=%.0f\nest2=%.0f v2=%.0f", est1, v1, est2, v2);
when I step into it while debugging, it gets stuck on v1+=(fx[i])*(pow(est1, fx[i])); and sends me to the math.h library.
However, when I debug it and step OVER the entire sequence, the the code goes on as expected and delivers proper results.
If I try to run without debugging, the output window stops at the point where the function is called, not even ending, just getting stuck.
Also, I'm not really sure what you'd need to know to help, so if you want to see the whole thing, I'll post it, or explain the variables or whatever:)