#include
#include<族歼渣math.h>
#include
int main()
{
double *data;
int i,n;
scanf("%d",&改慧n);
data=(double*)malloc(sizeof(double)*n);
for(i=0;i {
scanf("%lf",&兆悄data[i]);
}
for(i=0;i {
if(data[i]<0)
printf("y=%lf\n",fabs(data[i])/2);
else if(data[i]>=0&&data[i]<10)
printf("y=%lf\n",3+exp(data[i]));
else if(data[i]<20)
printf("y=%lf\n",log10(data[i]));
else if(data[i]<30)
printf("y=%lf\n",pow(data[i],1.5));
else if(data[i]<50)
printf("y=%lf\n",sqrt(data[i])-1);
else
printf("y=%lf\n",3*cos(data[i]));
}
free(data);
data=NULL;
return 0;
}