/* tjbes.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: jbes Prompted input: at prompt 'order ' enter v { real order v >=0) at prompt 'max-x interval ' enter xmx dx { real maximum x-value and interval -> table from x=0 to xmx at intervals dx } */ #include "ccmath.h" #include void main(void) { double x,dx,f,v,xmx; printf(" Test of Bessel Functions\n"); printf(" J(v,x)\n"); fprintf(stderr,"order "); scanf("%lf",&v); printf(" order= %.2f\n",v); fprintf(stderr,"max-x interval "); scanf("%lf %lf",&xmx,&dx); xmx+=dx/4.; for(x=0.; x