导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.7.4 文档 »
  • Python 标准库 »
  • |

数字和数学模块¶

本章介绍的模块提供与数字和数学相关的函数和数据类型。 numbers 模块定义了数字类型的抽象层次结构。 math 和 cmath 模块包含浮点数和复数的各种数学函数。 decimal 模块支持使用任意精度算术的十进制数的精确表示。

本章记录以下模块:

  • numbers --- 数字的抽象基类
    • 数字的层次
    • 类型接口注释。
      • Adding More Numeric ABCs
      • Implementing the arithmetic operations
  • math --- 数学函数
    • 数论与表示函数
    • 幂函数与对数函数
    • 三角函数
    • 角度转换
    • 双曲函数
    • 特殊函数
    • 常数
  • cmath ——关于复数的数学函数
    • 到极坐标和从极坐标的转换
    • 幂函数与对数函数
    • 三角函数
    • 双曲函数
    • Classification functions
    • 常数
  • decimal --- 十进制定点和浮点运算
    • 快速入门教程
    • Decimal 对象
      • Logical operands
    • Context objects
    • 常数
    • Rounding modes
    • Signals
    • Floating Point Notes
      • Mitigating round-off error with increased precision
      • Special values
    • Working with threads
    • Recipes
    • Decimal FAQ
  • fractions --- 分数
  • random --- 生成伪随机数
    • 簿记功能
    • 整数用函数
    • 序列用函数
    • 实值分布
    • 替代生成器
    • 关于再现性的说明
    • 例子和配方
  • statistics --- Mathematical statistics functions
    • Averages and measures of central location
    • Measures of spread
    • Function details
    • 异常

上一个主题

enum --- Support for enumerations

下一个主题

numbers --- 数字的抽象基类

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.7.4 文档 »
  • Python 标准库 »
  • |
© 版权所有 2001-2019, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 请捐助。
最后更新于 7月 25, 2019. 发现了问题?
使用Sphinx2.0.1 创建。