optimized cot function implementation

faster, divisionless implementation of the cot function
based on the fact that "cot = tan(PI/2 - angle)"