#include #include #include using namespace std; double der(double f, double fn, double n, double r, double s, double v, vector coef, vector deri, int p, int q){ if (p<5){ double fd=0; fn=0; for (int i=0; i coef, vector deri, int p, int q){ s=0.01; if (f<0){ while(fn<0){ fn=0; for (int i=0; i0){ while(fn>0){ fn=0; for (int i=0; i coef, vector deri, int p, int q){ f=0; fn=0; v = v+0.1; for (int i=0; i coef; vector deri; cout<<"Introduce the degree of the polynomial: "; cin>>n; q=n; cout<<"Introduce the coefficients in order: "<>a; coef.push_back(a); } cout<<"---"<