cmath
Stdlib — MathPython 2.0+Beginner
Mathematical functions for complex numbers
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import cmath print(f"Module: cmath") print(f"Contents: {dir(cmath)[:10]}")
The cmath module is part of Python's standard library. Mathematical functions for complex numbers.
Try in PlaygroundTags
stdlibmathnumeric