#include "header.h" int main(void) { Vector x; Vector df; Matrix ddf; int flag; float ans=0.0; clock_t t0, t1; double runtime; Int3 F={0,0,0}; x=ReadVector(); // this function will read a vector from a file to x printf("the vector is:\n"); PrintVector(x); df=CreateVector(x.n); // df is a n by 1 vector ddf=CreateMatrix(x.n,x.n); // ddf is a n by n matrix t0=clock(); flag=fB(x,&ans,&df,&ddf,F); t1=clock(); runtime=(double)(t1-t0)/CLOCKS_PER_SEC; printf("the running time of this function is %f\n",runtime); DestroyVector(&x); DestroyVector(&df); DestroyMatrix(&ddf); return 0; }