#include "header.h" int main(void) { Vector x; int count; float F1; clock_t t0, t1; double runtime; // read a vector from a file x=ReadVector(); // this function will read a vector from a file to x PrintVector(x); // print the vector x on the screen t0=clock(); // initianl time fA(x,&F1,0); // evaluate the function f(x) value count=fA(x,&F1,1); // return the count of evaluations t1=clock(); // ending time runtime=(double)(t1-t0)/CLOCKS_PER_SEC; printf("count=%d\n",count); printf("f(x)=%f\n",F1); printf("runtime=%f\n\n",runtime); DestroyVector(x); // makes x available again for further allocations return 0; }