mean value theorem with divided differences