Numerical Analysis with C++

This is “A First Course in Numerical Analysis with C++” by Prof. Dr. S.A. Bhatti and Mr. N.A. Bhatti.

While both books cover “Numerical Methods,” this specific one is a staple in many Pakistani universities (like PU, UET, or COMSATS) because it bridges the gap between math and programming.


Key Features of This Book

  • The “With C++” Aspect: Unlike the first book, which focuses heavily on manual calculations and theory, this book includes C++ source code for almost every mathematical method. It’s designed to teach you how to actually code these algorithms.
  • Student-Friendly: It is famous for being very “exam-oriented.” The explanations are direct, and the steps are laid out clearly for undergraduate students.
  • Fifth Edition: The fact that it’s in its 5th edition shows it has been refined over many years to fix errors and improve clarity.

What’s Inside?

You will find all the standard numerical topics, but with a programming twist:

  1. Error Analysis: Understanding how computers round off numbers ($floating-point$ arithmetic).
  2. Iterative Methods: Coding loops for methods like Jacobi or Gauss-Seidel.
  3. Curve Fitting: Using Least Squares to fit data to a line or curve.
  4. Eigenvalues: Finding the characteristics of matrices (important for structural engineering and data science).

Comparison: Iyengar & Jain vs. Bhatti

FeatureIyengar & Jain (First Book)S.A. Bhatti (Second Book)
Primary FocusMathematical Theory & DerivationsPractical Application & Programming
ComplexityAdvanced / RigorousApproachable / Direct
Best ForDeep understanding of “Why”Learning “How” to code the math
ProgrammingGeneral algorithmsSpecific C++ Implementations