A very long conducting wire is bent in a semi-circular shape from $A$ to $B$ as shown in figure. The magnetic field at point $P$ for steady current configuration is given by:
Semicircle: $\mu_0 i/(4R)$ out of page. Two semi-infinite straight portions: each $\mu_0 i/(4\pi R)$ into page, total $\mu_0 i/(2\pi R)$. Net $= (\mu_0 i/4R)(1 - 2/\pi)$, out of page.