Should this be ``if xp != 0``? There's also an instance of this for the bessel functions.