switched to no namespace version of cos and sin
added NaN tests for cos
added NaN and derivative doc to manual