Simplified inf and nan intrinsics.

Somehow I made it to this point in my life without knowing that math.h
defines INFINITY and NAN.
C output includes all the math functions now