tags:

views:

158

answers:

2
+3  Q: 

Inverse cot in C#

We know that the inverse of tan is Math.Atan, what about the inverse of cot? cot(x) is defined as

cot(x)=1/tan(x)
+8  A: 

See Inverse Cotangent. For some values, the inverse would be atan(1/x).

Greg Hewgill
+1  A: 

Another alternative for inverse of cotangent is Math.PI/2 - Math.Atan(x) which has the advantage of working properly when x is 0.

Daniel Martin