Advertisement
Guest User

Untitled

a guest
Jun 10th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #include "math.h"
  2. #include "stdio.h"
  3.  
  4. int main(void) {
  5. printf("%f\n", pow(-INFINITY, 0));
  6. printf("%f\n", __builtin_powi(-INFINITY, 0));
  7.  
  8. printf("%f\n", pow(-INFINITY, -5));
  9. printf("%f\n", __builtin_powi(-INFINITY, -5));
  10.  
  11. printf("%f\n", pow(-INFINITY, 3));
  12. printf("%f\n", __builtin_powi(-INFINITY, 3));
  13.  
  14. printf("%f\n", pow(INFINITY, 0));
  15. printf("%f\n", __builtin_powi(INFINITY, 0));
  16.  
  17. printf("%f\n", pow(INFINITY, -5));
  18. printf("%f\n", __builtin_powi(INFINITY, -5));
  19.  
  20. printf("%f\n", pow(INFINITY, 3));
  21. printf("%f\n", __builtin_powi(INFINITY, 3));
  22.  
  23. printf("%f\n", pow(NAN, 0));
  24. printf("%f\n", __builtin_powi(NAN, 0));
  25.  
  26. printf("%f\n", pow(NAN, -5));
  27. printf("%f\n", __builtin_powi(NAN, -5));
  28.  
  29. printf("%f\n", pow(NAN, 3));
  30. printf("%f\n", __builtin_powi(NAN, 3));
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement