Source: http://casemath.free.fr/quatre/4calcalg.pdf