Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6. double a;
  7. double b;
  8.  
  9. printf("Podaj wartosc a=");
  10. scanf("%lf",&a);
  11. printf("Podaj wartosc b=");
  12. scanf("%lf",&b);
  13.  
  14. double w;
  15. //1
  16. w = pow((pow(a, 2) - pow(b, 2)), 4) * pow((pow(a, 3) + pow(b, 3)), 6);
  17. printf("1.=%lf \n", w);
  18. //2
  19. w = sqrt(pow((pow(a, 2) + pow(b, 2)), 3));
  20. printf("2.=%lf \n\r", w);
  21. //3
  22. w = 262 * (pow(a, 2) + a * b + pow(b, 2)) / 231;
  23. printf("3.=%lf \n\r", w);
  24. //4
  25. w = (7 * (a + b * (1 + a * (a + b)) + a * b)) / 8;
  26. printf("4.=%lf \n\r", w);
  27. //5
  28. w = ((1 - pow(a, 2)) / (1 + pow(a, 2))) * sqrt(4 + pow(b, 2));
  29. printf("5.=%lf \n\r", w);
  30. //6
  31. w = ((4 + pow(b, 2)) / (4 - pow(b, 2))) * ((1 + pow(a, 2)) / (1 - pow(a, 2)));
  32. printf("6.=%lf \n\r", w);
  33. return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement