import numpy as np arr = np.random.uniform(0, 1, 10000) #Inverse Square Root 1 / np.sqrt(arr) #Divide number by np.sqrt() instead of multiplying by inverse x / np.sqrt(arr) #x can be a value, an array or a matrix