Thanks to visit codestin.com
Credit goes to www.rameshfadatare.com

Python cmath Module Functions

The cmath module in Python provides functions for complex number mathematics. These functions are useful for performing mathematical operations on complex numbers. Below is a list of some commonly used functions in the cmath module, along with their descriptions and links to detailed guides for each function.

For a complete tutorial, visit Python cmath Module Tutorial.

Python cmath Module Functions Table

Function Description
cmath.acos() Returns the arc cosine of a complex number.
cmath.asin() Returns the arc sine of a complex number.
cmath.atan() Returns the arc tangent of a complex number.
cmath.cos() Returns the cosine of a complex number.
cmath.tan() Returns the tangent of a complex number.
cmath.acosh() Returns the inverse hyperbolic cosine of a complex number.
cmath.asinh() Returns the inverse hyperbolic sine of a complex number.
cmath.atanh() Returns the inverse hyperbolic tangent of a complex number.
cmath.cosh() Returns the hyperbolic cosine of a complex number.
cmath.sinh() Returns the hyperbolic sine of a complex number.
cmath.tanh() Returns the hyperbolic tangent of a complex number.
cmath.exp() Returns the exponential of a complex number.
cmath.log() Returns the natural logarithm of a complex number.
cmath.log10() Returns the base-10 logarithm of a complex number.
cmath.sqrt() Returns the square root of a complex number.
cmath.phase() Returns the phase of a complex number.
cmath.rect() Converts polar coordinates to a complex number.
cmath.isfinite() Checks if a complex number is finite.
cmath.isinf() Checks if a complex number is infinite.

For more detailed information on each function, refer to the official Python documentation.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top