This program aims to generate a resistance value according to:
(Given an array of resistances and temperatures).
In order to obtain the current value of resistance, the equation requires an initial resistance and initial temperature values (R_0, T_0) from the array. It also requires the successive value of temperature (T) from the array.
My try:
r_model=[]
for r in r_values:
result = r*(1+2.9*(t_values[r+1]-t_values[r]))
fit2.append(result)
r_model = array(r_model)
My error:
index out of bounds