Articles → Numpy → Exp Function In NumpyExp Function In NumpyIn this article, we will discuss the "exp" function in NumPy.Purpose The "Exp" function in NumPy is used to calculate the exponential of a single element or an array.Example import numpy as np in_array = [1, 3, 5] print ("Input array : ", in_array) out_array = np.exp(in_array) print ("Output array : ", out_array)Output Click to EnlargePosted By - Karan Gupta Posted On - Thursday, April 25, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
import numpy as np in_array = [1, 3, 5] print ("Input array : ", in_array) out_array = np.exp(in_array) print ("Output array : ", out_array)
Query/Feedback