Figure 1: Residual energy computation.