added NaN test and doc for tan
added NaN test and doc for tgamma