Return the absolute value of *x*.
.. function:: factorial(x)
Return *x* factorial. Raises :exc:`ValueError` if *x* is not integral or
Return the floor of *x* as a float, the largest integer value less than or equal
Return the fractional and integer parts of *x*. Both results carry the sign of
*x*, and both are floats.
.. function:: sum(iterable)
Return an accurate floating point sum of values in the iterable. Avoids
algorithm's accuracy depends on IEEE-754 arithmetic guarantees and the
typical case where the rounding mode is half-even.
Return the :class:`Real` value *x* truncated to an :class:`Integral` (usually
Note that :func:`frexp` and :func:`modf` have a different call/return pattern
than their C equivalents: they take a single argument and return a pair of
values, rather than returning their second return value through an 'output
Power and logarithmic functions:
Return the square root of *x*.
Return the arc cosine of *x*, in radians.
Return the tangent of *x* radians.
Converts angle *x* from radians to degrees.
Converts angle *x* from degrees to radians.
Return the inverse hyperbolic cosine of *x*.
Return the hyperbolic tangent of *x*.
The module also defines two mathematical constants:
The mathematical constant *pi*.