cos-1(x) is used to find the angle whose cosine has a value of x.
Cos values are no smaller than -1 nor are they any larger than + 1; thus x must be in the range from -1 to +1 (inclusive).
Therefore cos-1(90) is undefined.
Did you mean to find the cos(90)? This would be possible.