/* tsolnl.c CCMATH mathematics library source code. * * Copyright (C) 2000 Daniel A. Atkinson All rights reserved. * This code may be redistributed under the terms of the GNU library * public license (LGPL). ( See the lgpl.license file for details.) * ------------------------------------------------------------------------ */ /* Test: solnl */ #include "ccmath.h" #define NN 3 void main(void) { double x[NN],f[NN],(*fv[NN])(),test=1.e-28; double fa(double *x),fb(double *x),fc(double *); int i,m; fv[0]=fa; fv[1]=fb; fv[2]=fc; printf(" Test of Nonlinear System Solver\n"); fprintf(stderr," enter initial x-vector (%d components)\n",NN); for(i=0; i