Python – cmath.infj Constant
Last Updated :
28 May, 2020
cMath module contains a number of functions which is used for mathematical operations for complex numbers. The cmath.infj Constant is used to get the complex positive infinity.
Syntax: cmath.infj
Returns: Return the complex positive infinity.
Below examples illustrate the use of above function:
Example :
Python3
import cmath
val = cmath.infj
print (val)
|
Output:
infj
Example 2:
Python3
import cmath
val = complex (cmath.infj)
print (val)
|
Output:
infj
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...