michaeli:
MarkT:
float Twet= A*Tdry + B*rh + C*Tdry*Tdry + D*rh*rh+ E*Tdry*rh + F ;Excellent, now I just to learn how to put the values of a-f into some sort of variable so this function can read them.
variables not needed, indeed they are constant(!)
#define A 0.539126
#define B 0.1047837
...