Honestly if Gio got 20 touches a game , he would win the rushing title . <| sep |> what were the chances rockin was a dangerous woman leftover ? <| sep |> my gramma starts crying in the middle of the prayer so you awkwardly wait longer while she sniffles and pauses aayyyyyyy <| sep |> tolerance 0 . 5 e 4 % tolerance ini 2 % initial guess fx expx 4 x 2 % function yx expx 8 x % derivative of function i 1 % to keep countcreate an array for your root estimates and put the initial guess in the first slot xiini while 1 will mean the loop will continue forever until you ' break ' itdo this so there is no max iteration number while 1 perform the Newton Raphson xi 1 xifxi . yxicalculate the error Erroriabsxi 1 xicreate an if statement to tell your loop that ' IF ' a certain event occurs in this case the error reaches tolerance then break out of the while loop and print out the last estimate of the root ifErroritolerance fprintf ' found root % dn ', xi 1 break enddont forget that because it is a while loop and not a for loop you have to tell the count variable to update each time so i 1 , i 2 , . etc ii 1 end