added NaN test for trigamma
added NaN test and doc for trigamma