Correcting the print function for the numerical inegration