Use logspace instead of arange.
- This way you are spending lesser time in the slow-variation region.
- This program only gives you an idea of the scaling anyway. It doesn't really
  calculate error. So this should do.