Locating θ fixes the signs. The cosine is positive, so θ lies in the first quadrant, θ∈[0,2π), and therefore sinθ>0 and tanθ>0.
sinθ=1−cos2θ=1−28964=289225=1715
(the 8–15–17 right triangle). Hence
tan(cos−1178)=tanθ=cosθsinθ=1781715=815.
Had the argument been negative, say cos−1(−178), θ would have been in the second quadrant and the answer would have carried a minus sign; the positive root above is justified only because θ is acute.