I'm a beginner in Python and i'm trying to translate this formula into Python to create a vector thanks to a boucle for :
I tried this code:
CN_mod_0 = []
CN = []
CN[0] = 35
for i in range(1,96):
CN[i] = 1200 / (1200/CN[i-1] + (e_num_H_0[i]- (p_num_H_0[i-1] - d_num_H_0[i-1])))
CN_mod_0.append(CN[i])
CN_mod_0
But there is something wrong with the initial value CN[0] that I entered... The vectors e_num_H_0, p_num_H_0 and d_num_H_0 have all a length of 96.
Thank you very much for the help