Choose step size for numerical integration (#593)

Choose step size for numerical integration (#593)

Select appropriate number of subintervals nn based on required accuracy.