#include #include #include int n=100; float x0=0,b=3,h=(b-x0)/n; float f(float x) { return cos(x); }; void prim(float y0) { float s=y0; for(int i=0;i