Hi, I have some problems in understanding a for loop, maybe someone is able to help me.

This is the loop i have:

```
T_e <- Ta
for (i in 1:99999) {
v_e <- 0.6108 * exp(17.27 * T_e/(T_e + 237.3))
T_enew <- Ta - 1 / gamma * (1 - R_ng / (lambda * Epenman.Daily)) * (v_e - vabar)
T_e <- T_enew}
```

As an example this are the first five values of my data set:

```
Ta=c( 15.85000, 17.95000, 19.40000, 17.20000, 15.75000)
gamma = 0.06599192
R_ng=c( 3.40699658 , 7.14502764, 4.30308424, 7.38261795, 6.40369739)
lambda=2.45
Epenman.Daily=c( 1.76016607, 2.95703213, 3.29923681, 3.01600420, 2.72208139
vabar=c( 1.2448065, 1.3487874, 1.3361953, 1.2641520, 1.2194822)
```

and this is the solution for T_e:

T_e:

14.54253001

17.80607304

15.99105488

17.19057572

15.42830198

My question is know, how exactly did you come to this values of T_e?

If i calculated it step by step I come to different solutions for T_e.

Maybe someone can show me, what of the data I have to put in the different equations to come to the solutions of the for loop.

Thank you very much.