Learn Before
Concept
NumPy Exponential and Logarithmic Functions
First, import numpy as np
- np.exp() returns e to the power of the element
- np.expm1() returns e to the power of the element minus 1
- np.exp2() calculates 2 to the power of the element
- np.log10() returns logarithm base 10 of the element
- np.log2() returns the logarithm base 2 of the element
- np.log1p() return the natural logarithm of one plus the element
0
1
Updated 2021-07-26
Tags
Python Programming Language
Data Science