This is the mean of some random numbers using numpy.
import numpy as np
x = np.random.normal(size=100)
import matplotlib.pyplot as plt
plt.hist(x)
plt.show()
np.mean(x)
-0.1701530565922348
Use a macro.
This is the mean of some random numbers using numpy.
import numpy as np
x = np.random.normal(size=100)
import matplotlib.pyplot as plt
plt.hist(x)
plt.show()
np.mean(x)
-0.1701530565922348
Use a macro.