Reflection and transmission coefficients at a scalar-wave interface (source code)

= Reflection and transmission coefficients at a scalar-wave interface
{title2=$R,T$}

For incident and transmitted normal wavenumbers $q_0$ and $q_1$, continuity of a scalar field and its normal derivative gives
$$
R=\frac{q_0-q_1}{q_0+q_1},
\qquad
T=\frac{2q_0}{q_0+q_1}.
$$