An iterative equation for solving the equation x^{2}−x−1=0 is given by

x_{r+1}=1+(1/xr) for r =0,1,2, …

Given x_{0} is 2 write a MATLAB script to solve the equation. Sufﬁcient accuracy is obtained when |x_{r+1}−xr|< 0.0005.=”” include=”” a=”” check=”” on=”” the=”” answer.1.13.=”” given=”” a=”” 4×5=”” matrix=”” a,=”” write=”” a=”” script=”” to=”” ﬁnd=”” the=”” sums=”” of=”” each=”” of=”” the=”” columns=”” using:=””>

(a) the for … end construction

(b) the function sum

Given a vector x with n elements, write a MATLAB script to form the products

pk = x_{1}x_{2} …x_{k}−1x_{k}+1 …x_{n}

for k =1,2,…,n. That is, p_{k} contains the products of all the vector elements except the kth. Run your script with speciﬁc values of x and n.

The post Run your script with speciﬁc values of x and n. appeared first on Best Custom Essay Writing Services | EssayBureau.com.