A new trigonometry challenge: Given a hexagon inscribed in a square as shown below, what is the ratio of relationship between the length of segment a and segment b? Assume the hexagon’s sides are all of equal length.

Update Feb 26: The solution, props to Brian.