lab1
This commit is contained in:
19
lab1/main.cpp
Normal file
19
lab1/main.cpp
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user