Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. # include <math.h>
  4.  
  5. int f(int x,int a, int b){
  6. float m,n,p,q;
  7. float F;
  8.  
  9. m=(b*(pow(x,2))-a)/(exp(a*x)-1);
  10. n=(pow(x,2))/2;
  11. p=(pow(x,3))/3;
  12. q=(pow(x,4))/4;
  13. F=m+n+p+q;
  14. printf("rez=%.2f\n",F);
  15. }
  16.  
  17. int main(){
  18. int x,a,b;
  19. printf("Introduceti variabila x= ");
  20. scanf("%d",&x);
  21. printf("Introduceti variabila a ");
  22. scanf("%f",&a);
  23. printf("Introduceti variabila b ");
  24. scanf("%f",&b);
  25.  
  26. if(f(x-10,a,b)==f(-x-10,a,b)){
  27. printf("funtia este para");
  28. }
  29. else{
  30. printf("Functia este impara");
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement