Get answer

I need answer of computer part it is a programming question of math- I need answer in R language in .ipynb file- I attached problem number 4 and 5 might be it is required in computer part. 1

I need answer of computer part it is a programming question of math, I need answer in R language in .ipynb file, I attached problem number 4 and 5 might be it is required in computer part.