#include <iostream>
#include <cmath>
using namespace std;
int main() {
double a, alpha, y1,y2,z1,z2;
cout << "input a"<<endl;
cin >> a;
cout << "input alpha"<<endl;
cin >> alpha;
y1 = (pow(((sqrt(a)/2)-(1/(2*sqrt(a)))),2))*(((sqrt(a)-1)/(sqrt(a)+1))-((sqrt(a)+1)/(sqrt(a)-1)));
y2 = (1-a)/(sqrt(a));
z1 = (sin(2*alpha)-sin(3*alpha)+sin(4*alpha))/(cos(2*alpha)-cos(3*alpha)+cos(4*alpha));
z2 = (sin(3*alpha))/(cos(3*alpha));
cout << "y1 = "
<< y1 << " "
<< "z1 = "
<< z1 << "\n"
<< "y2 = "
<< y2 << " "
<< "z2 = "
<< z2 << endl;
return 0;
}
Блок-схема