Source: https://martelli.alwaysdata.net/php_cours/sup/PCSI/Cours/nombres_complexes.pdf