Figure 2:
Pseudo source code for calculation Eqs. (4) and (5): variables such as k, m, I and N correspond to those of Eqs. (4) and (5). L[k] and Lk[k] mean left-hand sides in Eqs. (4) and (5), respectively.