here is the homework for numeric analysis class.