Homework for numberical analysis.