Interpolation finished. Second main function, for two derivatives