added NaN test for log
added NaN and derivative doc for log in manual