The math module

All of the usual math operations

     math.acos(x)             math.hypot(x,y)
     math.asin(x)             math.ldexp(x,i)
     math.atan(x)             math.log(x)
     math.atan2(x,y)          math.log10(x)
     math.ceil(x)             math.modf(x)
     math.cos(x)              math.pow(x,y)
     math.cosh(x)             math.sin(x)
     math.exp(x)              math.sinh(x)
     math.fabs(x)             math.sqrt(x)
     math.floor(x)            math.tan(x)
     math.fmod(x,y)           math.tanh(x)
     math.frexp(x)
     

Plus two constants

     math.pi 
     math.e
     

Note: the cmath module contains similar functions for complex numbers

<<< O'Reilly OSCON 2000, Introduction to Python, Slide 123
July 17, 2000, beazley@cs.uchicago.edu
>>>