Introduction to Numerical Analysis
We begin by making numerical analysis ordinary. The problem is not that mathematics has suddenly stopped being exact. The problem is that the machine, the representation, the algorithm, or the available time may force us to work with an estimate. That makes implementation choices part of the mathematics rather than a housekeeping detail.
naivesumkahansumnaivepolyhornernthrootStudents should be able to
- Explain why two algorithms that are mathematically equivalent can behave differently on a computer.
- Read simple R functions as algorithms rather than as syntax exercises.
- Compare naive and improved implementations for division, summation, polynomial evaluation, and root extraction.
- Recognize efficiency, representation, and readability as legitimate design constraints.
Students tend to treat the first working implementation as the algorithm. This chapter is a good place to break that habit before it gets expensive.