Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python v2.6 documentation »
  • The Python Standard Library »

Numeric and Mathematical ModulesΒΆ

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 functions for floating-point and complex numbers. For users more interested in decimal accuracy than in speed, the decimal module supports exact representations of decimal numbers.

The following modules are documented in this chapter:

  • numbers — Numeric abstract base classes
    • The numeric tower
    • Notes for type implementors
      • Adding More Numeric ABCs
      • Implementing the arithmetic operations
  • math — Mathematical functions
  • cmath — Mathematical functions for complex numbers
    • Complex coordinates
    • cmath functions
  • decimal — Decimal fixed point and floating point arithmetic
    • Quick-start Tutorial
    • Decimal objects
      • Logical operands
    • Context objects
    • Signals
    • Floating Point Notes
      • Mitigating round-off error with increased precision
      • Special values
    • Working with threads
    • Recipes
    • Decimal FAQ
  • fractions — Rational numbers
  • random — Generate pseudo-random numbers
  • itertools — Functions creating iterators for efficient looping
    • Itertool functions
    • Examples
    • Recipes
  • functools — Higher order functions and operations on callable objects
    • partial Objects
  • operator — Standard operators as functions
    • Mapping Operators to Functions

Previous topic

repr — Alternate repr implementation

Next topic

numbers — Numeric abstract base classes

This Page

  • Show Source

Quick search

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python v2.6 documentation »
  • The Python Standard Library »
© Copyright 1990-2008, Python Software Foundation. Last updated on Oct 02, 2008. Created using Sphinx 0.5.