Advertisement
DannyTDS

eer9

Oct 7th, 2015
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. float FunFun();
  4. float FunFun2();
  5. int main()
  6. {
  7. float W, X, X1;
  8. X=FunFun();
  9. X1=cbrt(pow(X,-2));//x^-2/3 = raiz cubica de x a -2
  10. W=(pow(X,3))-X1;
  11. printf("Valor de W es %f", W);
  12. }
  13.  
  14. float FunFun()
  15. {
  16. float X, Y;
  17. Y=FunFun2();
  18. X=(pow(Y,2))-(pow(Y,(-5/4)));
  19. return X;
  20. }
  21.  
  22. float FunFun2()
  23. {
  24. float Z, Y;
  25. printf("Dame valor de Z\n");
  26. scanf("%f", &Z);
  27. Y=Z-(2*Z);
  28. return Y;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement