I am doing optimizations in my code and would like to remove this for loop if possible. I have the following code:
def f(x): return np.pi * x * np