Learn Before
Concept

Other useful functions

#Return the angle of the complex argument Create an array of evenly spaced values (number of samples below) np.angle(b,deg=True) ex) g = np.linspace(0,np.pi,num=5 g [3:] += np.pi #Unwrap np.unwrap(g) #Create an array of evenly spaced values (log scale) np.logspace(0,10,3) #Return values from a list of arrays depending on conditions np.select([c<4],[c*2]) #Factorial misc.factorial(a) #Combine N things taken at k time misc.comb(10,3,exact=True) #Weights for Np-point central derivative misc.central_diff_weights(3) #Find the n-th derivative of a function at a point misc.derivative(myfunc,1.0)

0

1

Updated 2021-06-21

Tags

Python Programming Language

Data Science