Articles → Numpy → Fabs Function In NumpyFabs Function In NumpyIn this article, we will discuss the "fabs" function in NumPy.Purpose The "Fabs" function finds the absolute value of the number.Example import numpy as np print("Absolute of 10 is:", np.fabs(10)) print("Absolute of -10 is:", np.fabs(-10))Output Click to EnlargePosted By - Karan Gupta Posted On - Tuesday, June 4, 2019 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
import numpy as np print("Absolute of 10 is:", np.fabs(10)) print("Absolute of -10 is:", np.fabs(-10))
Query/Feedback