The exponential function is e^x where e is a mathematical constant called Euler's number, approximately 2.718281. This value has a close mathematical relationship with pi and the slope of the curve e^x is equal to its value at every point. np.exp() calculates e^x for each value of x in your input array.

Answer from machine yearning on Stack Overflow
🌐
NumPy
numpy.org › doc › stable › reference › generated › numpy.exp.html
numpy.exp — NumPy v2.4 Manual
The irrational number e is also known as Euler’s number. It is approximately 2.718281, and is the base of the natural logarithm, ln (this means that, if \(x = \ln y = \log_e y\), then \(e^x = y\). For real input, exp(x) is always positive. For complex arguments, x = a + ib, we can write \(e^x ...
🌐
Vultr Docs
docs.vultr.com › python › third-party › numpy › exp
Python Numpy exp() - Calculate Exponential | Vultr Docs
November 18, 2024 - Import the NumPy library. Apply the exp() function to a single number. ... This code computes e raised to the power of 2 (e²). The result is approximately 7.389056, showcasing how exp() calculates exponential values.
🌐
Codecademy
codecademy.com › docs › python:numpy › math methods › .exp()
Python:NumPy | Math Methods | .exp() | Codecademy
April 17, 2025 - The exponential function, np.exp(x), returns e^x, where e is Euler’s number with an approximate value of 2.71828. As a part of NumPy, a widely used library for numerical computing in Python, this function is particularly useful in scientific computations where exponential functions are common.
🌐
NumPy
numpy.org › doc › 2.2 › reference › generated › numpy.exp.html
numpy.exp — NumPy v2.2 Manual
The irrational number e is also known as Euler’s number. It is approximately 2.718281, and is the base of the natural logarithm, ln (this means that, if \(x = \ln y = \log_e y\), then \(e^x = y\). For real input, exp(x) is always positive. For complex arguments, x = a + ib, we can write \(e^x ...
🌐
NumPy
numpy.org › doc › 2.1 › reference › generated › numpy.exp.html
numpy.exp — NumPy v2.1 Manual
The irrational number e is also known as Euler’s number. It is approximately 2.718281, and is the base of the natural logarithm, ln (this means that, if \(x = \ln y = \log_e y\), then \(e^x = y\). For real input, exp(x) is always positive. For complex arguments, x = a + ib, we can write \(e^x ...
Find elsewhere
🌐
datagy
datagy.io › home › numpy › numpy exponential: using the numpy.exp() function
NumPy Exponential: Using the NumPy.exp() Function • datagy
December 30, 2022 - The NumPy exp() function is used to calculate the exponential of all the elements in an array. This means that it raises the value of Euler’s constant, e, to the power all elements of an array, or a single element, passed into the function.
🌐
Educative
educative.io › answers › what-is-the-exp-function-in-numpy
What is the exp function in NumPy?
The exp function in NumPy is used to compute the exponent of all values present in the given array. e refers to Euler’s constant.
🌐
Spark By {Examples}
sparkbyexamples.com › home › numpy › how to use numpy exponential function
How to Use NumPy Exponential Function - Spark By {Examples}
March 27, 2024 - You can see the Parabolic graph of the exp() function in Numpy. ... The NumPy exponential function, np.exp(), calculates the exponential of each element in a NumPy array.
🌐
NumPy
numpy.org › doc › 2.3 › reference › generated › numpy.exp.html
numpy.exp — NumPy v2.3 Manual
The irrational number e is also known as Euler’s number. It is approximately 2.718281, and is the base of the natural logarithm, ln (this means that, if \(x = \ln y = \log_e y\), then \(e^x = y\). For real input, exp(x) is always positive. For complex arguments, x = a + ib, we can write \(e^x ...
🌐
SciPy
docs.scipy.org › doc › numpy-1.13.0 › reference › generated › numpy.exp.html
numpy.exp — NumPy v1.13 Manual
numpy.exp(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'exp'>¶ · Calculate the exponential of all elements in the input array. See also · expm1 · Calculate exp(x) - 1 for all elements in the array.
🌐
w3resource
w3resource.com › python-exercises › numpy › advanced-numpy-exercise-15.php
NumPy - Calculate the exponential of each element in an array
This operation applies the exponential function to each value, transforming the original array into one where each element is the exponentiated value of the corresponding element in the original array.
🌐
Programiz
programiz.com › python-programming › numpy › methods › exp
NumPy exp() (With Examples)
Become a certified Python programmer. Try Programiz PRO! ... The exp() function is used to calculate the exponential values of the elements in an array. import numpy as np array1 = np.array([1, 2, 3, 4, 5])
🌐
AskPython
askpython.com › home › numpy exp – a complete guide
NumPy exp - A Complete Guide - AskPython
February 16, 2023 - The exp method in NumPy is a function that returns the exponential of all the elements of the input array. This means that it calculates e^x for each x in the input array.
🌐
Medium
medium.com › @amit25173 › numpy-exponential-8e099b664794
numpy exponential. I understand that learning data science… | by Amit Yadav | Medium
January 25, 2025 - In plain terms, it raises Euler’s number (e, approximately 2.718) to the power of each input element. Sounds fancy, but let’s see it in action—you’ll understand it much faster with examples. ... Let’s start small: calculating the exponential of a single number. import numpy as np # Example: Calculate the exponential of a number result = np.exp(1) print(result) # Output: 2.718281828459045 · In this example, we asked Python to compute e¹, which is approximately 2.718.
🌐
TutorialsPoint
tutorialspoint.com › home › numpy › numpy exponential functions
NumPy Exponential Functions
March 5, 2015 - In decay, the function is y = y0 * e-kt. In the following example, we simulate exponential growth by using NumPy's exp() function.
🌐
NumPy
numpy.org › doc › 2.0 › reference › generated › numpy.exp.html
numpy.exp — NumPy v2.0 Manual
The irrational number e is also known as Euler’s number. It is approximately 2.718281, and is the base of the natural logarithm, ln (this means that, if \(x = \ln y = \log_e y\), then \(e^x = y\). For real input, exp(x) is always positive. For complex arguments, x = a + ib, we can write \(e^x ...
🌐
GeeksforGeeks
geeksforgeeks.org › numpy-exp-python
numpy.exp() in Python - GeeksforGeeks
March 29, 2023 - numpy.exp() is a function in the Python NumPy library that calculates the exponential value of an input array. It returns an array with the exponential value of each element of the input array.