## Numerical Recipes: Example Book (FORTRAN)The 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 of 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 both Fortran and C. |

### What people are saying - Write a review

We haven't found any reviews in the usual places.

### Contents

Preliminaries | 1 |

Linear Algebraic Equations | 5 |

Interpolation and Extrapolation | 31 |

Integration of Functions | 42 |

Evaluation of Functions | 56 |

Special Functions | 67 |

Random Numbers | 98 |

Sorting | 112 |

Fast Fourier Transform | 156 |

Fourier and Spectral Applications | 167 |

Statistical Description of Data | 177 |

Modeling of Data | 197 |

Ordinary Differential Equations | 210 |

Integral Equations and Inverse Theory | 224 |

Partial Differential Equations | 228 |

LessNumerical Algorithms | 233 |

Root Finding and Sets of Equations | 122 |

Minimization and Maximization of Functions | 133 |

Eigensystems | 147 |

### Common terms and phrases

11 continue 12 11 continue call 11 continue close(7 11 continue END 13 continue write Bessel Function calculates CHARACTER Chebyshev coefficients compared continue 12 continue continue do 12 continue END SUBROUTINE continue goto data sets data1 decomposition demonstration program deviation Diskette IBM distribution DOUBLE PRECISION driver for routine eigenvalues eigenvectors Elliptic Integral END REAL FUNCTION END Routine endif 11 continue equations error evaluation Example Book EXTERNAL func FORTRAN function values Gaussian goto 10 read(7 grid idum Incomplete gamma function input INTEGER i,j REAL INTEGER i,nval REAL INTEGER NP interpolation interval iterations Julian day linear method mglin NTERM Numerical Recipes nval write open(7,file='FNCVAL.DAT',status='OLD original array original matrix output PARAMETER polynomial Press RETURN problem QR decomposition random number REAL FUNCTION func(x REAL PI return END Right-hand side vector roots Sample program Solution vector sorted array sparse matrix STOP END subroutine tridiagonal tridiagonal matrix zero