Numerical methods applicable to laser refraction through a caustic