Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "math.h"
- #include "stdio.h"
- int main(void) {
- printf("%f\n", pow(-INFINITY, 0));
- printf("%f\n", __builtin_powi(-INFINITY, 0));
- printf("%f\n", pow(-INFINITY, -5));
- printf("%f\n", __builtin_powi(-INFINITY, -5));
- printf("%f\n", pow(-INFINITY, 3));
- printf("%f\n", __builtin_powi(-INFINITY, 3));
- printf("%f\n", pow(INFINITY, 0));
- printf("%f\n", __builtin_powi(INFINITY, 0));
- printf("%f\n", pow(INFINITY, -5));
- printf("%f\n", __builtin_powi(INFINITY, -5));
- printf("%f\n", pow(INFINITY, 3));
- printf("%f\n", __builtin_powi(INFINITY, 3));
- printf("%f\n", pow(NAN, 0));
- printf("%f\n", __builtin_powi(NAN, 0));
- printf("%f\n", pow(NAN, -5));
- printf("%f\n", __builtin_powi(NAN, -5));
- printf("%f\n", pow(NAN, 3));
- printf("%f\n", __builtin_powi(NAN, 3));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement