Loading search index…
No recent searches
No results for "Query here"
本章中描述的模块提供了与数字和 math 相关的Function和数据类型。 numbers模块定义数字类型的抽象层次结构。 math和cmath模块包含用于浮点数和复数的各种 math 函数。 decimal模块使用任意精度算术支持十进制数字的精确表示。
本章介绍了以下模块:
数字—数值抽象 Base Class
数字塔
添加更多数字 ABC
math—math 函数
数论和表示函数
幂和对数函数
Trigonometric functions
Angular conversion
Hyperbolic functions
Special functions
Constants
cmath —复数的 math 函数
极坐标之间的转换
Classification functions
十进制—小数定点和浮点算法
Quick-start Tutorial
Logical operands
Context objects
Rounding modes
Signals
浮点 Comments
以更高的精度缓解舍入误差
Special values
使用线程
Recipes
Decimal FAQ
分数—有理数
random —生成伪随机数
Bookkeeping functions
整数函数
序列Function
Real-valued distributions
Alternative Generator
重现性说明
例子和食谱
统计—math 统计Function
中心位置的平均值和度量
传播措施
Function details
Exceptions
NormalDist objects
NormalDist 示例和食谱