/* jspbes.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 jspbes(int n,double x) { double y,s,t,v,u,a0=1.57079632679490; double gaml(double a); int p,m; if(x==0.){ if(n==0) return 1.; else return 0.;} v=n+.5; y=1.+.68*n; if(xm && fabs(t)<1.e-13*fabs(s)) break; } } else{ s=t=1./x; x*=2.; u=0.; for(p=1,y=.5; y