About 220 results
Open links in new tab
  1. 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.

  2. 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 …

  3. The Python Tutorial — Python 3.13.3 documentation

    1 day ago · This tutorial introduces the reader informally to the basic concepts and features of the Python language and system. It helps to have a Python interpreter handy for hands-on experience, but all examples are self-contained, so the tutorial can be read off-line as well.

  4. 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.

  5. statistics — Mathematical statistics functions — Python 3.13.3 ...

    18 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 ...

  6. 3. An Informal Introduction to Python

    1 day ago · Using Python as a Calculator¶ Let’s try some simple Python commands. Start the interpreter and wait for the primary prompt, >>>. (It shouldn’t take long.) 3.1.1. Numbers¶ The interpreter acts as a simple calculator: you can type an expression at it and it will write the value.

  7. 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.

  8. cmath — Mathematical functions for complex numbers - Python

    Mar 9, 2022 · 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.

  9. 5. Data Structures — Python 3.13.3 documentation

    2 days ago · Basic uses include membership testing and eliminating duplicate entries. Set objects also support mathematical operations like union, intersection, difference, and symmetric difference. Curly braces or the set() function can be used to create sets.

  10. 10. Brief Tour of the Standard Library — Python 3.13.3 …

    The math module gives access to the underlying C library functions for floating-point math: >>> import math >>> math . cos ( math . pi / 4 ) 0.70710678118654757 >>> math . log ( 1024 , 2 ) 10.0 The random module provides tools for making random selections:

Refresh