California State University, Northridge
Math 581. Demo programs and supplementary materials.
Chapter 1. Section 1. Problem 8. Matlab sample code.
Chapter 1. Example 1. Loss of precision due to cancellation. Matlab sample code.
Chapter 1. Example 2. Loss of precision due to cancellation. Matlab sample code.
Chapter 1. Example 3. Loss of precision due to cancellation. Matlab sample code.
Chapter 1. Section 3. Problem 7. Matlab sample code.
Chapter 1. Example 4. Growth of a single roundoff error. Matlab sample code.
Chapter 1. Example 5. Instability without cancellation. Matlab sample code.
Chapter 1. Example 6. Growth of a single roundoff error. Matlab sample code.
Sample code for Project 1.