Source: http://www.mathinfo.tn/math/math/2emeS/gfonction/gfonction.pdf