Now, in C++ at last, a new
Numerical Recipes in C and
Numerical Recipes in Fortran
as a new member of the Numerical Recipes family, please
Numerical Recipes in C++!
Numerical Recipes (Second Edition)
The following links are to sample pages, in Adobe PDF format, from
Numerical Recipes in C++.
All the new C++ source code, as well as the previous C source code
upgraded to new version 2.10, is included in the downloadable
C++/C software products available now from the Numerical Recipes On-Line Software Store.
(These files are Copyright (C) 2002 by
Cambridge University Press, except for Appendix B, which is placed
into the public domain.)
Coordinated with this new version, and
also just published by Cambridge University Press are
Key to the usability of this new version are a wealth of tricks and
tips for scientific computing in C++. The book and software include a
simple vector and matrix class library for stand-alone use. In addition,
all the routines are written in such a way that the user can use them,
unmodified, with almost any other vector/matrix class library in
common use -- or any specialized class library that the user may want
to develop. An Appendix gives worked examples, with explicit
interface code for the Template Numerical Toolkit (TNT) and for the
Matrix Template Library (MTL).
Here are some additional highlights of new material specific to
Users of the classic Numerical Recipes in
C have not been forgotten. The hardcover C book is being
reprinted in a corrected version 2.10, and the updated C code will
continue to be maintained and improved as a separate source code
collection included in the C++ and multi-language CDROMs, and also in
the downloadable C++ software products available from the Numerical Recipes On-Line Software
Store. Alternatively, since the underlying algorithms in the C++
version are generally identical to the C version, C users should also
find it easy to transition to the C++ version at any time.
- In response to user feedback, all vectors and matrices
are now zero-based
- "Const correctness" and other strong typing is emphasized;
users can expect more rapid code development with fewer bugs
- User can choose between "const protects container" and
"const protects data" styles of programming; the book explains
the pros and cons of each style
- Extensive discussion of "wrapper classes" versus "derived
classes" in the context of scientific vector/matrix programming;
the Numerical Recipes classes can be used in either mode
- All Numerical Recipes identifiers within an "NR::" namespace,
for added compatibility with other packages
If you've been waiting for Numerical Recipes in C++
... thanks for your patience! Now that the waiting is
over, you might want to
A bit of fine print...
1. Numerical Recipes Software will continue to offer free upgrades to
the current version, for any Second Edition Numerical Recipes source
code product. In this regard, however, the C++ language version is a
new product, not an upgrade of the C version; so it is not available
for free to C code users.
2. Due to copyright restrictions, the text
page images of Numerical Recipes in C++ are not available on the free
Books On-Line resource.