function [value]=my_sqrt(x1,e)
A=input('Enter a number you want to know the approximation of
the square root of: ');
x=input('Enter your initial guess for the square root: ');
e=input('Enter the convergence you want: ');
xold=x;
diff=10*e;
while diff>=e
Y=xold^2/A;
xnew=xold*(Y+3)/(3*Y+1);
diff=abs(xold-xnew);
xold=xnew;
end
value=xnew;
(loops, conditional) Edmond Halley (of comet fame) invented a fast algorithm for computing the squareroot of...
4. One interesting property of a Fibonacci sequence is that the ratio of the values of adjacent members of the sequence approaches a number called "the golden ratio". Create a program that accepts the first two numbers of a Fibonacci sequence as user input and then calculates additional values in the sequence until the ratio of adjacent values converges to within 0.001 You can do this in a while loop by comparing the ratio of element k to element k...