Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #include <conio.h>
- #include <Windows.h>
- using namespace std;
- int main ()
- {
- double x, y;
- for (double a = 0; a <= 5.0; a+= 0.1)
- {
- for (double b = -2.0; b <= 5.0; b+= 0.2)
- {
- if (b <= a)
- {
- x = cbrt(a + 6) -cbrt(a - b) + pow(pow(a, 2) + pow(b, 2), 1.0 / 6);
- }
- else if (b > 0.5)
- {
- x = sqrt(fabs(4 - 4 * pow(a, 3) + pow(b, 6)) + 6) + a - cbrt(2);
- }
- else
- {
- x = (a*cbrt(a) - 2 * a*cbrt(b) +cbrt(pow(a, 2)*b)) -cbrt(a*pow(b, 2)) / cbrt(pow(a, 2) + 1);
- cout << "a = " << a << endl;
- cout << "b = " << b << endl;
- cout << "x = " << x << endl;
- }
- if ((x!= 0) && (a!= 3.14))
- {
- y = (1 - 2 * pow(sin(a), 2)) / (1 - sin((4)*a)) - (1 + tan((2)*a)) / (x);
- }
- else
- {
- y = sqrt(fabs(pow(x, 2) + 3 * x + 2)) - sqrt(fabs(pow(x, 2) - x + 1)) -1;
- cout << "a = " << a << endl;
- cout << "y = " << y << endl;
- }
- }
- }
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement