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

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.

本章记录以下模块：

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

  * 9.1.1. 数字的层次

  * 9.1.2. 类型接口注释。

    * 9.1.2.1. 加入更多数字的ABC

    * 9.1.2.2. 实现算数运算

* 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. 分类函数

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

  * 9.4.5. Floating Point Notes

    * 9.4.5.1. Mitigating round-off error with increased precision

    * 9.4.5.2. Special values

  * 9.4.6. Working with threads

  * 9.4.7. Recipes

  * 9.4.8. Decimal FAQ

* 9.5. "fractions" — 分数

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

* 9.7. "itertools" — 为高效循环而创建迭代器的函数

  * 9.7.1. Itertool函数

  * 9.7.2. Recipes

* 9.8. "functools" — 高阶函数和可调用对象上的操作

  * 9.8.1. "partial" Objects

* 9.9. "operator" — 标准运算符替代函数

  * 9.9.1. Mapping Operators to Functions
