I have been using numpy's polyfit function to get a linear fit to some data. And I have gotten some slopes. However the idea of slopes have gotten my head very confused.
I am getting slopes of 0.0142 and of 391! quite different.
What does a slope of 391 actually means? Take a look at this
import numpy as np
import matplotlib.pyplot as plt
xr=np.arange(100)
yr=0.0142*xr
yr2=391*xr
plt.plot(xr,yr,yr2)
print("The angle is:",np.degrees(np.arctan(391)))
The angle is: 89.8534637990051
There is no way that that angle is 89.8 degrees!
What am I getting wrong?
