#include "header.h" int main(void) { Vector x; int count; float ans=0; clock_t start, end; double runtime; //read the vector in from the file. x=ReadVector(); PrintVector(x); // time begins start=clock(); ///////////////////////////////////////// //evaluate the function value count=fA(x,&ans,0); //return the count of the running times count=fA(x,&ans,1); // time begins end=clock(); runtime=(double)(end-start)/CLOCKS_PER_SEC; //print out: function value and the count and the runtime. printf("%f\n",ans); printf("%d\n",count); printf("%f\n",runtime); ///////////////////////////////////////// DestroyVector(x); return 0; }