/* solnl.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.) * ------------------------------------------------------------------------ */ #include int solnl(double *x,double *f,double (*fvec[])(), int n,double test) { double sc,del,delp; int i,j,k; double *p,*q,*r,*s,*pth,*py,*ps,*pb; pth=(double *)calloc(n*n+3*n,sizeof(*pth)); py=pth+n*n; ps=py+n; pb=ps+n; for(i=0; i