Source: https://maths.dis.ac-guyane.fr/IMG/pdf/calcul_ligne_c3.pdf