ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
### 9. Numeric and Mathematical Modules The modules described in this chapter provide numeric and math-related functions and data types. The [numbers](# "numbers: Numeric abstract base classes (Complex, Real, Integral, etc.).") module defines an abstract hierarchy of numeric types. The [math](# "math: Mathematical functions (sin() etc.).") and [cmath](# "cmath: Mathematical functions for complex numbers.") modules contain various mathematical functions for floating-point and complex numbers. For users more interested in decimal accuracy than in speed, the [decimal](# "decimal: Implementation of the General Decimal Arithmetic Specification.") module supports exact representations of decimal numbers.