Actually the limit is not defined. As x approaches [itex]\frac{\pi}{2}[/itex] from the left, the function approaches infinity. As x approaches from the right, the function approaches negative infinity. The limit from the left does not equal the limit from the right, so the limit does not exist. Actually, strictly speaking, the limit would not exist even if the function approached positive infinty from both sides, since the definition of the limit requires that the function get arbitrarily close to the limit, and it is impossible for a function to be within some definite value of infinty.
Related Threads for: Limit lim(x->pi/4) tan(2x) =tan(pi/2)