I have corrected a mistake in the program. I had put to display the function name instead of the circumference results, this was giving me an answer of isNAN.