Logo

上個主題

graphlib —-- 使用類圖 (graph-like) 結構進行操作的功能

下個主題

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

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • 3.11.5 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 數值與數學模組
  • |
  • |

數值與數學模組¶

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

本章包含以下模块的文档:

  • numbers --- 數值的抽象基底類別
    • 數值的階層
    • 給型別實作者的註記
      • 加入更多數值 ABC
      • 實作算術操作
  • math --- 數學函式
    • 数论与表示函数
    • 幂函数与对数函数
    • 三角函数
    • 角度转换
    • 双曲函数
    • 特殊函数
    • 常數
  • cmath --- 关于复数的数学函数
    • 到极坐标和从极坐标的转换
    • 幂函数与对数函数
    • 三角函数
    • 双曲函数
    • 分类函数
    • 常數
  • decimal --- 十进制定点和浮点运算
    • 快速入门教程
    • Decimal 对象
      • 逻辑操作数
    • 上下文对象
    • 常數
    • 舍入模式
    • 信号
    • 浮点数说明
      • 通过提升精度来解决舍入错误
      • 特殊的值
    • 使用线程
    • 例程
    • Decimal 常见问题
  • fractions --- 分数
  • random --- 生成偽隨機數
    • 簿記函式 (bookkeeping functions)
    • 回傳位元組的函式
    • 回傳整數的函式
    • 回傳序列的函式
    • 實數分布
    • 替代產生器
    • 關於 Reproducibility(復現性)的注意事項
    • 範例
    • 使用方案
  • statistics --- 數學統計函式
    • 平均值與中央位置量數
    • 離度 (spread) 的測量
    • 兩個輸入之間的關係統計
    • 函式細節
    • 例外
    • NormalDist 物件
      • NormalDist 範例與錦囊妙計

上個主題

graphlib —-- 使用類圖 (graph-like) 結構進行操作的功能

下個主題

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

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python »
  • 3.11.5 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 數值與數學模組
  • |
  • |
© 版權 2001-2023, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 10月 01, 2023。 Found a bug?
使用 Sphinx 4.5.0 建立。