R‐matrix solution of coupled equations for inelastic scattering