The sides of a rectangle are 1 and 3, and its diagonals intersect forming an angle of theta. Find tan(theta/2).