#include<stdio.h>
int main()
{
float x,y,a,b,q;
printf ("Enter x=");
scanf("%f",&x);
if(x<42)
{
y=x*131/1000+20+273.15;
}
else if(x>=42&&x<87.6)
{
y=x*11579/10000-23.132+273.15;
}
else if(x>=87.6&&x<112.8)
{
y=x*24563/10000-136.88+273.15;
}
else if (x>=112.8&&x<184.6)
{
y=x*22326/10000-111.64+273.15;
}
else if (x>=184.6&&x<225.6)
{
y=x*-7415/10000+437.37+273.15;
}
else if (x>=225.6&&x<250.7)
{
y=x*-3546/10000+350.09+273.15;
}
else if (x>=250.7&&x<261.6)
{
y=x*22115/10000-293.23+273.15;
}
else if (x>=261.1&&x<325.3)
{
y=x*-5561/10000+429.39+273.15;
}
else if (x>=325.3&&x<523.8)
{
y=x*-2035/10000+314.71+273.15;
}
else if (x>=523.8&&x<600)
{
y=x*-1042/10000+262.67+273.15;
}
a=(y*y+77*77)*(y+77);
b=a*0.03*0.0000000567/2365.857+0.00006;
q=b*(y-77)/0.03;
printf("x=%f,q=%f\n",x,q);
return 0;
}
评论5