include iostream include math using namespace std int main double cout

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double a, b, y, z;
cout << "Enter a" << endl;
cin >> a;
cout << "Enter b" << endl;
cin >> b;
y = pow(cos(a), 4) + pow(sin(b), 2) + 1.f / 4 * pow(sin(2 * a), 2) - 1;
z = sin(b + a) * sin(b - a);
cout << "y = " << y << "; z = " << z << endl;
return 0;
}