Expand test cases for negative x.
Add comment on the calculation of derivatives of cot(x).