Trying to rewrite cot as a Reciprocal of tan

I tried to rewrite cot function as a Recriprocal function. I have just implemented it like the sec function. Please review.