:mod:`math` --- Mathematical functions ====================================== Power and logarithmic functions ------------------------------- .. function:: math.log(x) Returns the natural logarithm of *x* (to base *e*). .. function:: math.pow(x, y) Returns ``x`` to the power of ``y``. .. function:: math.sqrt(x) Returns the square root of ``x``. Trigonometric functions ----------------------- .. function:: math.sin(x) Returns the sine of ``x`` radians. .. function:: math.cos(x) Returns the cosine of ``x`` radians. .. function:: math.tan(x) Returns the tangent of ``x`` radians. .. function:: math.acos(x) Returns the arc cosine of ``x``, in radians. .. function:: math.asin(x) Returns the arc sine of ``x``, in radians. .. function:: math.atan(x) Returns the arc tangent of ``x``, in radians. Constants --------- .. slot:: math.pi The mathematical constant pi = 3.141592... .. slot:: math.e The mathematical constant e = 2.718281...