Finding the exact value of tangent angle