Does anyone know how to write a program in Python that will calculate the addition of the harmonic series. i.e. 1 + 1/2 +1/3 +1/4...
By using the numpy module, you can also alternatively use:
numpy
import numpy as np def HN(n): return sum(1/arange(1,n+1))