Skip to content

Instantly share code, notes, and snippets.

@jeamland
Created May 4, 2015 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeamland/5937c2f5dd7a9f3c2ef7 to your computer and use it in GitHub Desktop.
Save jeamland/5937c2f5dd7a9f3c2ef7 to your computer and use it in GitHub Desktop.
> uname -a
Darwin usxxriceb2m1.corp.emc.com 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
> cat hypot.c
#include <math.h>
#include <stdio.h>
int
main(int argc, char **argv)
{
printf("%f\n", hypot(1.0, NAN));
}
> cc -o hypot hypot.c -lm
> ./hypot
nan
[switching machines, same code]
> uname -a
FreeBSD freefall.freebsd.org 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r281547: Wed Apr 15 09:19:23 UTC 2015 peter@build-11.freebsd.org:/usr/obj/usr/src/sys/CLUSTER11 amd64
> cc -o hypot hypot.c -lm
> ./hypot
nan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment