% Change in variable is set to a high value >> dx-1; x-input (\'Enter the initia
ID: 669216 • Letter: #
Question
% Change in variable is set to a high value >> dx-1; x-input ('Enter the initial estimate -> ); iter = 0; disp('iter Dc while abs(err) 0.01 & iter 100 iter = iter 1; % Initial estimate % Iteration counter x') % Heading for result % Test for convergence % No. of iterations % Residual % Derivative J = 3*x.^2-124x . +11; dx= DC/J; %Change in variable % Successive solution fprintf(%g', iter), disp( [Dc, J, dx, x]) end Enter the initial estimate -> 3.5 iter Dc J 3*x.^2-124x . +11; % Derivative = Error: Unexpected MATLAB operator.Explanation / Answer
Here J=3*x.^2 - 12*x.+11;
you have put extra . after 12*x so that error accor.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.