Home >>Python cmath Module >Python cmath.atan() Method

Python cmath.atan() Method

Python cmath.atan() Method

Python cmath.atan() method in python is used to return the arc tangent of a complex number. This method has two branch cuts:

One extends from 1j (continuous from the right.) along the imaginary axis to ∞j

The other extends from -1j (continuous from the left) along the imaginary axis to -∞j

Syntax:
cmath.atan(x)

Parameter Values

Parameter Description
x It is a required parameter to find the arctangent of a number
Here is an Example of Python cmath.atan() Method:

import cmath
print (cmath.atan(4 + 3j))

Output:
(1.4099210495965755+0.1175009073114339j)
Example 2:

import cmath
print (cmath.atan(7 + 11j))

Output:
(1.5294705688134722+0.0646859707398566j)

No Sidebar ads