9. 数字和数学模块
*****************

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

本章记录以下模块：

* 9.1. "numbers" --- 数字的抽象基类

  * 9.1.1. 数字的层次

  * 9.1.2. Notes for type implementors

    * 9.1.2.1. Adding More Numeric ABCs

    * 9.1.2.2. Implementing the arithmetic operations

* 9.2. "math" --- 数学函数

  * 9.2.1. 数论与表示函数

  * 9.2.2. 幂函数与对数函数

  * 9.2.3. 三角函数

  * 9.2.4. 角度转换

  * 9.2.5. 双曲函数

  * 9.2.6. 特殊函数

  * 9.2.7. 常数

* 9.3. "cmath" ——关于复数的数学函数

  * 9.3.1. 到极坐标和从极坐标的转换

  * 9.3.2. 幂函数与对数函数

  * 9.3.3. 三角函数

  * 9.3.4. 双曲函数

  * 9.3.5. Classification functions

  * 9.3.6. 常数

* 9.4. "decimal" --- 十进制定点和浮点运算

  * 9.4.1. 快速入门教程

  * 9.4.2. Decimal 对象

    * 9.4.2.1. Logical operands

  * 9.4.3. Context objects

  * 9.4.4. 常数

  * 9.4.5. Rounding modes

  * 9.4.6. Signals

  * 9.4.7. Floating Point Notes

    * 9.4.7.1. Mitigating round-off error with increased precision

    * 9.4.7.2. Special values

  * 9.4.8. Working with threads

  * 9.4.9. Recipes

  * 9.4.10. Decimal FAQ

* 9.5. "fractions" --- 分数

* 9.6. "random" --- 生成伪随机数

  * 9.6.1. 簿记功能

  * 9.6.2. 整数用函数

  * 9.6.3. 序列用函数

  * 9.6.4. 实值分布

  * 9.6.5. 替代生成器

  * 9.6.6. 关于再现性的说明

  * 9.6.7. 例子和配方

* 9.7. "statistics" --- Mathematical statistics functions

  * 9.7.1. Averages and measures of central location

  * 9.7.2. Measures of spread

  * 9.7.3. Function details

  * 9.7.4. 异常
