Solving the linear semiclassical Schrödinger equation on the real line