Both C and Fortran versions are available in the recipes locker. The source code is in the directory /mit/recipes/src.
To use the libraries from your C program, you'd type:
attach recipesTo use the libraries from your Fortran program, you'd type:
cc filename /mit/recipes/`machtype`lib/librecipes_c.a
attach recipesThe layout of the recipes locker is as follows:
f77 filename /mit/recipes/`machtype`lib/librecipes_f.a
The src directory has 2 subdirectories, one for C one for fortran:
src/recipes_c-ansi ----- The Ansi-C version src/recipes_c-kr ----- The K&R C version src/recipes_f ----- The fortran versionEach of these subdirectories contain the source for Numerical Recipes and the source for the demo/example programs. The NR sources are in src/recipes_{c,f}/recipes and the demo/example sources are in src/recipes_{c,f}/demo/src.
Due to conflict with libm.a, there were 2 changes made in the Numerical Recipes C sources: