Fix sec, csc, cot, etc.

Test Plan: Run the unit tests

Auditors: alex