added NaN test for sin
added doc for sin