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


Picture showing the output of the fabs function in numpy
Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250