#include
#include
#include
double fun(double x)
{
if(x<10)
{
double t = 1-exp(-1*x);
if(t){
return 1/t;
}
return 0x8FFFFFFF;//无穷大
}
else
return (x+3)*sin(2*x);
}
int main()
{
printf("%8.3lf\n", fun(5.16));
printf("%8.3lf\n", fun(16.32));
system("pause");
return 0;
}