Files
hw-cpp/lab1/main.cpp
2025-02-05 22:21:01 +09:00

20 lines
296 B
C++

#include <iostream>
#include <cmath>
using namespace std;
int main() {
//int z1 = 0;
//int z2 = 0;
int a = 0;
cout << "Введите a: ";
cin >> a;
cout << "z1 = " << (1 - 2 * pow(sin(a), 2)) / (1 + sin(2 * a)) << endl;
cout << "z2 = " << (1 - tan(a)) / (1 + tan(a)) << endl;
return 0;
}