function Curva(int tiempo; float temperatura_a): int
{
// Coeficientes
float m,n;
if ((tiempo < 10)&&(temperatura_a<28)
{
// Calculamos los coeficientes
// Ecuaciones Lineales: y=m*x+n m=(y1-y2)/(x1-x2) n=y1-m*x1
// Valores iniciales: y1=temperatura_a y2=28
// x1=0 x2=10
m=(28-temperatura_a)/(10-0);
n=temperatura_a;
}
if ((tiempo >= 10)&&(tiempo<=35)
{
m=0.0441176
n=46.4558
}
// Resto de intervalos........
return=Cell(m*tiempo+n);
}