Solutions to exercises in the book, chapter 9
No solutions since working through the R-code given is the objective.
See solutions here: https://www.math.ntnu.no/emner/TMA4268/2018v/CompEx/Compulsory3solutions.html