Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #define _USE_MATH_DEFINES
- #include <math.h>
- #define w(x,y) (2 * x * y) / (x + cos(y))
- #define f(x,y,z) sqrt(x * sin(2 * y)) / (z + pow(M_E,x) * y)
- using namespace std;
- int main() {
- const double x = 2.87, y = 0.84;
- double z = w(x, y);
- double b = f(x, y, z);
- cout << "z = " << z << '\n';
- cout << "b = " << b;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement