Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- double a;
- double b;
- printf("Podaj wartosc a=");
- scanf("%lf",&a);
- printf("Podaj wartosc b=");
- scanf("%lf",&b);
- double w;
- //1
- w = pow((pow(a, 2) - pow(b, 2)), 4) * pow((pow(a, 3) + pow(b, 3)), 6);
- printf("1.=%lf \n", w);
- //2
- w = sqrt(pow((pow(a, 2) + pow(b, 2)), 3));
- printf("2.=%lf \n\r", w);
- //3
- w = 262 * (pow(a, 2) + a * b + pow(b, 2)) / 231;
- printf("3.=%lf \n\r", w);
- //4
- w = (7 * (a + b * (1 + a * (a + b)) + a * b)) / 8;
- printf("4.=%lf \n\r", w);
- //5
- w = ((1 - pow(a, 2)) / (1 + pow(a, 2))) * sqrt(4 + pow(b, 2));
- printf("5.=%lf \n\r", w);
- //6
- w = ((4 + pow(b, 2)) / (4 - pow(b, 2))) * ((1 + pow(a, 2)) / (1 - pow(a, 2)));
- printf("6.=%lf \n\r", w);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement