The book gives the reader the basis for understanding the way numerical schemes achieve accurate and stable simulations of physical phenomena. It is based on the finite-difference method and simple problems that allow also the analytic solutions to be worked out. ODEs as well as hyperbolic, parabolic and elliptic types are treated. The book builds on simple model equations and, pedagogically, on a host of problems given together with their solutions.