Source: https://ptsi-chaptal.fr/SI/S4/td_loi_entree_sortie.pdf