Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- double funk(double, double);
- int main()
- {
- using namespace std;
- double z, x, y;
- cout << "Enter x and y: ";
- cin >> x >> y;
- cout << endl;
- if ((x != y) && (y > 0))
- {
- z = funk(y, x) + fabs(((sqrt(((3 * funk(x, y)))) / ((x - y)*exp(2 * x))));
- cout << funk(y, x) << endl;
- cout << funk(x, y) << endl;
- cout << "Your result: " << z;
- }
- else
- {
- cout << "Error";
- }
- return 0;
- }
- double funk(double t, double p)
- {
- double funkt = asin(3 * t) - sin(2 * p);
- return funkt;
- }
- RAW Paste Data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement