Figure 11: The implementation of the formula.