數值與數學模組
**************

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.
The "decimal" module supports exact representations of decimal
numbers, using arbitrary precision arithmetic.

The following modules are documented in this chapter:

* "numbers" --- 數值的抽象基底類別

  * 數值的階層

  * 給型別實作者的註記

    * 加入更多數值 ABC

    * 實作算術操作

* "math" --- 數學函式

  * 數論與表現函式

  * Power and logarithmic functions

  * Trigonometric functions

  * Angular conversion

  * Hyperbolic functions

  * Special functions

  * 常數

* "cmath" --- 複數的數學函式

  * 轉換到極座標和從極座標做轉換

  * 冪函數和對數函數

  * 三角函數

  * 雙曲函數

  * 分類函式

  * 常數

* "decimal" --- 十進位固定點和浮點運算

  * Quick-start Tutorial

  * Decimal objects

    * Logical operands

  * Context objects

  * 常數

  * Rounding modes

  * Signals

  * Floating-Point Notes

    * Mitigating round-off error with increased precision

    * 特殊值

  * Working with threads

  * Recipes

  * Decimal FAQ

* "fractions" --- 有理數

* "random" --- 生成偽隨機數

  * 簿記函式 (bookkeeping functions)

  * 回傳位元組的函式

  * 回傳整數的函式

  * 回傳序列的函式

  * 離散分布

  * 實數分布

  * 替代產生器

  * 關於 Reproducibility（復現性）的注意事項

  * 範例

  * 使用方案

* "statistics" --- 數學統計函式

  * 平均值與中央位置量數

  * 離度 (spread) 的測量

  * 兩個輸入之間的關係統計

  * 函式細節

  * 例外

  * "NormalDist" 物件

  * 範例與錦囊妙計

    * 經典機率問題

    * 用於模擬的蒙地卡羅 (Monte Carlo) 輸入

    * 近似二項分布

    * 單純貝氏分類器 (Naive bayesian classifier)

    * 核密度估計 (Kernel density estimation)
