cmath — Mathematical functions for complex numbers — Python 3.16.0a0 documentation

docs.python.org

Tin mới

math.integer — integer-specific mathematics functions

decimal — Decimal fixed-point and floating-point arithmetic

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Numeric and Mathematical Modules

object.__complex__

For example, the cmath.sqrt() function has a branch cut along the negative real axis. An argument of -2-0j is treated as though it lies below the branch cut, and so gives a result on the negative imaginary axis:

math: Mathematical functions (sin() etc.).

Floating-point positive infinity. Equivalent to float('inf').