A non-grey analytical model for irradiated atmospheres - II. Analytical vs. numerical solutions