#include #include #include #include //define the type typedef struct {int n; float *fp;} Vector; // a structure 'Vector' to store a n by 1 vector typedef struct {int n; int m; float *fp;} Matrix; // a structure 'Matrix' to store a n by m matrix typedef struct {int f;int df;int ddf;} Int3; // a structure 'Int3' to store the values of f, df, and ddf Vector CreateVector(int n); Vector ReadVector(); void PrintVector(Vector x); void DestroyVector(Vector *x); Matrix CreateMatrix(int n, int m); void PrintMatrix(Matrix X); void DestroyMatrix(Matrix *X); int fB(Vector x,float *f,Vector *df,Matrix *ddf,Int3 spec);