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)
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)
See Inverse Cotangent. For some values, the inverse would be atan(1/x)
.
Another alternative for inverse of cotangent is Math.PI/2 - Math.Atan(x)
which has the advantage of working properly when x
is 0
.