Python: Exemple d’utilisation du module math

Author:

 module
{filelink=16939}

import math
 
"""
 Exemple de quelques fonctions de
 du module math
"""
print "pi", "=>", math.pi
print "e", "=>", math.e
print "hypot", "=>", math.hypot(3.0, 4.0)