Source: https://www.parfenoff.org/pdf/cycle4_3e/3e_eg_cosinus.pdf