Source: http://www.college-nicolastronchon.fr/ADI/files/users/jkwiatkowski/Correction%20S4CI2%20Exercices%20application.pdf