I am trying to use the inverse secant formula given in the help menu but I keep getting the wrong answer. Here is what I am using:
angle(i) = Atn(a / Sqr(a * a - 1)) + _
Sgn((a) - 1 * (2 * Atn(1))
angle(i) = angle(i) * 180 / PI
When a is 1.414 the angle is calculated to be 172 degrees, when it should be 45 degrees.
Any ideas on why this is would be very helpful.
Thanks
angle(i) = Atn(a / Sqr(a * a - 1)) + _
Sgn((a) - 1 * (2 * Atn(1))
angle(i) = angle(i) * 180 / PI
When a is 1.414 the angle is calculated to be 172 degrees, when it should be 45 degrees.
Any ideas on why this is would be very helpful.
Thanks