#include <iostream>
#include <cmath>
int main()
{
float b;
std::cin >> b;
std::cout << "z1 = " << (sqrt(2*b + 2*sqrt(pow(b, 2) - 4))) / (sqrt(pow(b, 2) - 4) + b + 2) << std::endl;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <cmath>
int main()
{
float b;
std::cin >> b;
std::cout << "z1 = " << (sqrt(2*b + 2*sqrt(pow(b, 2) - 4))) / (sqrt(pow(b, 2) - 4) + b + 2) << std::endl;
}