MATLAB: Trying to create a function to approx the sqrt of a number using this approximation

approximationMATLAB

I have been trying to figure out this problem for a few hours and I cant seem to progress any further. I would greatly appreciate any help that could be provided in fixing my code.
My code wont post correctly so i will screenshot what i had.

Best Answer

You have to define n before you use it.