Source: http://pdebousse.free.fr/pdebousse/Corrections_1S3_files/TP3 correction.pdf