#include
#include
double power(double m,double n);
main()
{
double x,y,z,x1,y1,x2,y2,x3,y3,a1,b1,c1,a2,b2,c2,m,n,n1,n2;
printf("请输入三种油在100摄氏度下的粘度,并按照从小到大顺序输入\n");
scanf("%If,%If,%If",&a1,&b1,&c1);
printf("请输入三种油在40摄氏度下的粘度,并按照100摄氏度大小排列顺序输入\n");
scanf("%If,%If,%If",&a2,&b2,&c2);
printf("请输入混合油在100摄氏度和40摄氏度下要求达到的粘度\n");
scanf("%f,%f",&m,&n);
if(a1
x1=(log(b1/m)/log(10))/(log(b1/a1)/log(10));
y1=(log(m/a1)/log(10))/(log(b1/a1)/log(10));
n1=power(a2,x1)*power(b2,y1);
x2=(log(c1/m)/log(10))/(log(c1/a1)/log(10));
y2=(log(m/a1)/log(10))/(log(c1/a1)/log(10));
n2=power(a2,x2)*power(c2,y2);
if(n1
printf("可以配制\n");
}
else if(n2
printf("可以配制\n");
}
else
{
printf("不可以配制\n");
}
}
else if(b1
x1=(log(b1/m)/log(10))/(log(b1/c1)/log(10));
y1=(log(m/c1)/log(10))/(log(b1/c1)/log(10));
n1=power(c2,x1)*power(b2,y1);
x2=(log(a1/m)/log(10))/(log(a1/c1)/log(10));
y2=(log(m/c1)/log(10))/(log(a1/c1)/log(10));
n2=power(c2,x2)*power(a2,y2);
if(n1
printf("可以配制\n");
}
else if(n2
printf("可以配制\n");
}
else
{
printf("不可以配制\n");
}
}
else
{
printf("绝对不可能配制\n");
}
}