>>920
sin^2=1-cos^2

1+tan^2=1/cos^2
⇒cos^2=1/(1+tan^2)

tan(π/2-θ)=1/tanθ