Which NumPy function is used for element-wise exponentiation?
-
A
np.power()
-
B
np.exp()
Correct answer
-
C
np.square()
-
D
np.log()
Correct answer
B. np.exp()
15 views
Explanation
np.exp() computes the element-wise exponentiation of an array in NumPy.
Video explanation
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ