SHARE
TWEET

Untitled

a guest Jun 10th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top