Numerical Computation Using C
Robert Glassey and Werner Rheinboldt (Auth.)This book contains a wide selection of numeric techniques and shows how to implement them using the C programming language. Unfortunately, there are some problems with the programming style.
1. Many subroutines dynamically allocate memory without freeing it when it's no longer used. These subroutines are called from within loops and leak memory as the program runs.
2. Time is spent developing a set of functions to compute with complex numbers when modern C compilers now have a native complex datatype.
3. Matrices are represented as arrays of pointers. This requires an additional level indirection when accessing matrix elements. In addition this format is not compatible with standard Fourier transform and matrix manipulation libraries.
While only minor changes to the book are needed to address the above mentioned problems, without these changes, the book could mislead a beginning programmer.