Skip to content

NumPy Math Functions

NumPy Math Functions

The code below prints out all NumPy functions and methods:

import numpy as np
for func in dir(np):
    print(func)

NumPy Array Creation and Manipulation Functions and Methods

np.array
np.arange
np.ndarray
np.zeros
np.ones
np.matrix
np.traspose
np.size
np.shape
np.reshape
np.meshgrid
np.dot
np.cross
np.asmatrix
np.asarray

NumPy Exponential and Logarithmic Functions and Methods

np.log
np.log10
np.log1p
np.log2
np.logaddexp
np.logaddexp2
np.exp
np.exp2
np.sqrt
np.power
np.e

NumPy Trigonometric Functions and Methods

np.pi
np.sin
np.cos
np.tan
np.arcsin
np.arccos
np.arctan
np.arcsinh
np.arccosh
np.arctanh
np.arctan2
np.radians
np.rad2deg
np.deg2rad
np.radians
np.sinc
np.sinh
np.tanh
np.angle

NumPy Statistics Functions and Methods

np.mean
np.average
np.median
np.std
np.var
np.correlate
np.histogram
np.amin
np.amax
np.ptp
np.percentile