added NaN test for inv_square
added NaN test for inv_square
added NaN and derivative doc to manual for inv_square