implement cot as tan(pi/2 - angle)
format fix
Merge pull request #272 from plasmacel/master

optimized cot function implementation #272