#include<iostream>
#include<iomanip>
#include<vector>
#include<string>
#include<cmath>
using namespace std;
int main()
{
int n;
cin >> n;
for (int i = 0; i < n; i++)
{
double m;
cin >> m;
if (m < -2)
{
double s = sin(m);
double y = m * m - s;
cout << fixed << setprecision(2) << y << endl;
}
else if (m > 2)
{
double y;
double s;
s = m * m + m + 1;
y = pow(s, 0.5);
cout << fixed << setprecision(2) << y << endl;
}
else
{
double s = pow(2, m);
double y = s + m;
cout <<fixed<<setprecision(2)<< y << endl;
}
}
return 0;
}
01-30
2916
07-03
1万+