Articles → Numpy → fabs function in numpy

fabs function in numpy






Purpose





Example


import numpy as np

print("Absolute of 10 is:", np.fabs(10))
print("Absolute of -10 is:", np.fabs(-10))



Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, June 04, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250