Articles → Numpy → isinf function in numpy

isinf function in numpy






Purpose





Example


import numpy as np

print("Is 1 infinite:", np.isinf(1))
print("Is 0 infinite:", np.isinf(0))
print("Is np.inf infinite:", np.isinf(np.inf))
print("Is -np.inf infinite:", np.isinf(-np.inf))



Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, May 31, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250