Source: https://www.cpge-fermat.fr/Info/Scipy.pdf