1. Home
  2. Data Science
  3. NumPy
  4. Which function is used to calculate the exponential of all…

Added 25 Feb 2024

Which function is used to calculate the exponential of all elements in an input array in NumPy?

  1. np.exp() Correct answer
  2. np.log()
  3. np.power()
  4. np.sqrt()

Correct answer

A. np.exp()

15 views

MCQSEXAM

Explanation

The np.exp() function computes the exponential of all elements in an input array. It is useful for calculating exponential growth or decay in numerical data.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More NumPy MCQs

Practise all NumPy MCQs

Similar MCQs