/* fintg.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 double fintg(double a,double b,int n,double te,double (*func)()) { int j,k,m; double s,t,x,h,ap[10],*p; s=((*func)(b)+(*func)(a))/2.; h=(b-a)/n; x=a; for(j=1; j