code for my numerical analysis course