/* Kincaid and Cheney Computer Exercise 2.3#5 Written October 15, 2012 by for Math 701 Eric Olson */ #include #include #define N 51 double J[N+2]; main(){ printf( "Kincaid and Cheney Computer Exercise 2.3#5\n" "Written October 15, 2012 by for Math 701 Eric Olson\n"); J[N+1]=0.0; J[N]=1.0; int n; for(n=N;n>0;n--) J[n-1]=2*n*J[n]-J[n+1]; double s=0; for(n=1;n<=N;n++) s+=J[n]*J[n]; s=1.0/sqrt(J[0]*J[0]+2*s); for(n=0;n<=N;n++) J[n]*=s; printf("\n%4s %24s\n","n","J[n]"); for(n=0;n