Learn Before
  • Mathematical Functions in NumPy

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

4 years ago

Tags

Python Programming Language

Data Science

Related
  • Geeks for Geeks NumPy Mathematical Functions

  • NumPy Trigonometric Functions

  • NumPy Rounding Functions

  • NumPy Exponential and Logarithmic Functions

  • NumPy Arithmetic Functions

  • Other Math Functions in NumPy