Numerical Recipes: Example Book C, Book 4These example books published as part of the Numerical Recipes, Second Edition series are source programs that demonstrate all of the Numerical Recipes subroutines. Each example program contains comments and is prefaced by a short description of how it functions. The books consist of all the material from the original edition as well as new material from the Second Edition. They will be valuable for readers who wish to incorporate procedures and subroutines into their own source programs. They are available in Fortran, C, and C++. |
Contents
Preliminaries | 1 |
Linear Algebraic Equations | 6 |
Interpolation and Extrapolation | 40 |
Integration of Functions | 53 |
Evaluation of Functions | 67 |
Special Functions | 80 |
Random Numbers | 124 |
Sorting | 138 |
Statistical Description of Data | 221 |
Modeling of Data | 246 |
Ordinary Differential Equations | 261 |
TwoPoint Boundary Value Problems | 274 |
Integral Equations and Inverse Theory | 277 |
Partial Differential Equations | 281 |
LessNumerical Algorithms | 287 |
Header Files | 297 |
Root Finding and Sets of Equations | 152 |
Minimization and Maximization of Functions | 167 |
Eigensystems | 184 |
Fast Fourier Transform | 194 |
Fourier and Spectral Applications | 208 |
Numerical Recipes Utility Functions | 310 |
Functions for Complex Arithmetic | 316 |
Index of Demonstrated Routines | 319 |
Common terms and phrases
&idum &nval 20 define 80 int main(void array Bessel Function char txt MAXSTR Chebyshev coefficients Computing covar data sets data1 data2 define MAXSTR 80 define NP define X1 demonstration program double Driver for routine dydx eigenvalues Elliptic Integral equations error fclose(fp fcomplex feof(fp fgets fgets(dummy fgets(txt fgets(txt,MAXSTR FILE fp float func(float float prob float x1 fncval.dat not found\n fopen("fncval.dat","r found in fncval.dat\n free_matrix free_vector(x,1,NP fscanf(fp function values Gaussian getchar idum include math.h include nr.h include nrutil.h include stdio.h include string.h input int i,j int i,nval int isign interpolation Iter JMAX long nrh LU decomposition matrix MAXSTR 80 int method NBMAX NDAT NDIM nrerror("Data file fncval nrerror("Data file fncval.dat nrerror("Data not found NULL Numerical Recipes NVAL NVAR polynomial printf printf("Enter printf("press RETURN result root Sample program sigb solution static float stdlib.h strncmp(txt transform unsigned char unsigned long void derivs zero
References to this book
Time Series Analysis and Its Applications Robert H. Shumway,David S. Stoffer No preview available - 2000 |