Thanks for the help, but I managed to figure out my silly mistake. This is the proper way to do it. I wrote out the process, by hand and it allowed me to come to this solution.
k=0
yterms = []
while k<=SEG:
yterm = H + aa*m.cosh(xterms[k]/aa) -aa*m.cosh(DIS/aa)
yterms.append(yterm)
k+=1
print yterms
Sorry to waste your time