
math — Mathematical functions — Python 3.13.3 documentation
3 days ago · This module provides access to the mathematical functions defined by the C standard. These functions cannot be used with complex numbers; use the functions of the same name from the cmath module if you require support for complex numbers.
Built-in Functions — Python 3.13.3 documentation
1 day ago · Built-in Functions¶ The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.
statistics — Mathematical statistics functions — Python 3.13.3 ...
23 hours ago · This module provides functions for calculating mathematical statistics of numeric (Real-valued) data. The module is not intended to be a competitor to third-party libraries such as NumPy, SciPy, or proprietary full-featured statistics packages aimed at professional statisticians such as Minitab, SAS and Matlab. It is aimed at the level of ...
Numeric and Mathematical Modules — Python 3.13.3 …
3 days ago · The modules described in this chapter provide numeric and math-related functions and data types. The numbers module defines an abstract hierarchy of numeric types. The math and cmath modules contain various mathematical …
cmath — Mathematical functions for complex numbers - Python
2 days ago · This module provides access to mathematical functions for complex numbers. The functions in this module accept integers, floating-point numbers or complex numbers as arguments.
The Python Standard Library — Python 3.13.3 documentation
1 day ago · While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. It also describes some of the optional components that are commonly included in Python distributions.
random — Generate pseudo-random numbers — Python 3.13.3 …
1 day ago · Almost all module functions depend on the basic function random(), which generates a random float uniformly in the half-open range 0.0 <= X < 1.0. Python uses the Mersenne Twister as the core generator.
operator — Standard operators as functions - Python
2 days ago · The operator module exports a set of efficient functions corresponding to the intrinsic operators of Python. For example, operator.add(x, y) is equivalent to the expression x+y . Many function names are those used for special methods, without the double underscores.
6. Expressions — Python 3.13.3 documentation
1 day ago · The function math.fmod() returns a result whose sign matches the sign of the first argument instead, and so returns -1e-100 in this case. Which approach is more appropriate depends on the application.
fractions — Rational numbers — Python 3.13.3 documentation
2 days ago · From Python 3.2 onwards, you can also construct a Fraction instance directly from a decimal.Decimal instance. limit_denominator ( max_denominator = 1000000 ) ¶ Finds and returns the closest Fraction to self that has denominator at most max_denominator.