#include
#include
using namespace std;
int main()
{
double e = exp(1.0), x, y;
cout << "Input x: ";</p>
cin >> x;
if (x > 0.4)
y = sqrt(x) + sin(x);
else if (x > -1)
y = sqrt(2 - x) + cos(x);
else y = pow(e, 5 * x - 1) + log(x);
cout << "y = " << y;</p>
}