Fundamentals of numerical analysis