A Chapter 1 drag-limited fall has mass and quadratic drag coefficient
PHYSICS · Subjective · Fermi University Physics · Mathematical Methods for Physics · Computational Physics · Research software practice, verification and validation
Computational Physics, Ch A workspace that can be rerun next year
Problem
A Chapter 1 drag-limited fall has mass m=3kg and quadratic drag coefficient b=0.08kgm−1, so the terminal speed is v∞=mg/b with g=9.8ms−2. The script integrates this fall for N=2000 steps, and Chapter 2 established that each stored floating-point value satisfies fl(x)=x(1+δ) with ∣δ∣≤21ϵmach, ϵmach=2.22×10−16, so that after N steps the rounding-error floor on a quantity of typical size v∞ is of order Nϵmachv∞.
(a) Compute v∞ to four significant figures.
(b) Estimate the rounding-error floor on the final speed after N=2000 steps, using the formula above.
(c) A known-answer test asserts that the final speed lies within tol=10−3v∞ of v∞. Compute this tolerance and the ratio tol/floor, and say whether the tolerance sits safely above the rounding floor.
(d) Following the convention that a computed number is quoted only to the digits its supporting analysis warrants, state to how many decimal places v∞ should be quoted given the tolerance in part 3.