Consider two arrangements of wires. Find the ratio of magnetic field at the centre of the semi–circular part.
Magnetic field at the centre is calculated using the Biot–Savart law. For a semicircular wire of radius $R$, $B_{semi} = \frac{\mu_0 I}{4R}$. For the first arrangement, the fields from the straight sections and the curve add up. In the second, some components subtract.
Evaluating the vector sum for both geometries and taking the ratio leads to the expression $\frac{\pi+3}{\pi-1}$.

