Python: Effectuer des opération mathématiques avec le module cmath

Author:

 module
{filelink=16853}

import cmath
 
# Afficher le pi
print "pi", "=>", cmath.pi
 
# Afficher la racine carrée de -1
print "sqrt(-1)", "=>", cmath.sqrt(-1)