Absolute, relative and percentage error in GNU Octave: significant digits (5x10^-t rule), comparing 9 approximations of pi (22/7, 355/113...), chopping vs rounding bounds and catastrophic cancellation in (1-cos x)/x^2. Tests and plots included.
education matlab octave scientific-computing numerical-methods floating-point rounding numerical-analysis gnu-octave significant-digits error-analysis relative-error pi-approximation absolute-error catastrophic-cancellation
-
Updated
Nov 26, 2026 - MATLAB