Using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
double Z1, Z2, a;
cin >> a;
Z1 = ((a + 2) / sqrtf(2 * a) - a / (sqrtf(2 * a) + 2) + 2 / (a - sqrtf(2 * a))) * ((sqrtf(a) - sqrtf(2)) / (a + 2));
Z2 = 1 / (sqrtf(a) + sqrtf(2));
cout << "Z1 = " << Z1 << endl << "Z2 = " << Z2 << endl;<br> system("pause");
return 0;
}