HELP!!! a programing newbie need a simple answer.


DancingWind
01-15-2006, 05:04 AM
Hello everyone, I have homework to do on nonlinear eqation system sloving using quasi-newton method (its 9.7 the golobaly convergent method) and I have but one question:
How do I implement a "vector of funtions"??? as in
(*vecfunc)(int, float [], float [])
could someone give me the routine codes exapmle?
i'm not very good at programing :( i imagine how it must "look" but not how to implement it :confused: .

DancingWind
01-15-2006, 05:18 AM
Supose i just need the nwton method to solve nonlinear equasion systems. I have to include the main method.
void newt(float x[], int n, int *check,
void (*vecfunc)(int, float [], float []))
then (obviously) linear search metod:
void lnsrch(int n, float xold[], float fold, float g[], float p[], float x[],float *f, float stpmax, int *check, float (*func)(float []))
then the LU metods:
void lubksb(double **a, int n, int *indx, double b[]);
void ludcmp(double **a, int n, int *indx, double *d);
and include: nrutil.h, dcomplex.h, common.h (the last two for nrutil.h)
and i'm ready to go that is to code the equation systems,input and output data metods.