atan(x) = acos( 1 / sqrt(1 + x ^2) ) && should acos work faster && let a = sin (t) b = cos(t) && now tan(t) = sin(t) / cos(t) tan(t) = sqrt(1-b^2) / b && hence acos(b) == atan(sqrt(1-b^2) / b) && let x = sqrt(1-b^2)/b &&right hand side becomes: atan(x) && find left side x = sqrt(1-b^2)/b x^2 = (1 - b^2) / b^2 x^2 * b^2 = 1 - b^2 x^2 * b^2 + b^2 = 1 b^2 *(1 + x^2) = 1 b^2 = 1 / (1 + x^2) b = 1 / sqrt(1 + x^2) && ie 0 <= b <= 1 && subsitute b (in terms of x) in left hand side, x in right hand side acos( 1 / sqrt(1 + x^2)) = atan(x) && sample set decimals to 18 x = .98 a = atan(x) && 0.775297496812126000 b = acos(1 / sqrt(1 + x^2)) && .775297486612127000(2) speed of execution