A ball is thrown vertically so that its height obeys

PHYSICS · Subjective · Fermi University Physics · Mathematical Methods for Physics · Numerical and computational mathematics · Numerical and computational mathematics

Computational Physics, Ch Numbers a machine can hold, and the two errors that follow

Problem

A ball is thrown vertically so that its height obeys y(t)=v0t−12gt2y(t) = v_0 t - \tfrac12 g t^2, with v0=20.0 m s−1v_0 = 20.0\,\mathrm{m\,s^{-1}} and g=9.80 m s−2g = 9.80\,\mathrm{m\,s^{-2}} (air resistance ignored). Someone estimates the instantaneous velocity at t=1.00 st = 1.00\,\mathrm{s} using the forward-difference formula [y(t+h)−y(t)]/h[y(t+h)-y(t)]/h in place of the true derivative y′(t)y'(t). (a) State the binary64 layout (sign, exponent and stored significand bits) and use it to derive ϵmach=2−52\epsilon_{\rm mach} = 2^{-52}. (b) Expand y(t+h)y(t+h) as a Taylor series about tt and derive the leading truncation-error term of the forward difference, as a function of hh and y′′(t)y''(t). (c) Say why, for this particular y(t)y(t), that leading term is in fact the entire truncation error, with nothing left over. (d) Evaluate the truncation error at h=0.100 sh = 0.100\,\mathrm{s} and at h=0.0500 sh = 0.0500\,\mathrm{s}, and give the ratio of the two errors.

Browse the problem library