Learn Before
Code

SciPy and NumPy Miscellaneous Functions

# Return the angle of the complex argument np.angle(b, deg=True) # Create an array of evenly spaced values (number of samples below) 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 2026-07-05

Tags

Python Programming Language

Data Science