blob: 527492bd9a305b10e2bd8ac4685131d1a526ce7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "humidity.h"
double maximale_luftfeuchte(double t)
{
for (int i=1; i<DAMPF_ANZ; i++)
if (dampf_temperaturen[i]>=t)
return (t-dampf_temperaturen[i-1])*(dampf_feuchten[i]-dampf_feuchten[i-1])/(dampf_temperaturen[i]-dampf_temperaturen[i-1]);
return -1;
}
double taupunkt(double af)
{
for (int i=1; i<DAMPF_ANZ; i++)
if (dampf_feuchten[i]>=af)
return (af-dampf_feuchten[i-1])*(dampf_temperaturen[i]-dampf_temperaturen[i-1])/(dampf_feuchten[i]-dampf_feuchten[i-1]);
return -1;
}
|