Update 13-ResidualsRcode.tex