Numerical Analysis course homework