Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Matlab How do I get the output values for my function newdim. I already posted my code the question prompt and the template for

Using Matlab

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

How do I get the output values for my function newdim. I already posted my code the question prompt and the template for the code. The template tells you what input values you need. assume P is (1.2,1.2) delta is 0.001 epsilon is 0.001 and max1 is 10000. Thanks

Programs 3.6 (Nonlinear Seidel Iteration) and 3.7 (Newton-Raphson Method) will quire saving the nonlinear system X = G(X), and the nonlinear system F(X) and its Jacobian matrix. JF, respectively, as M-files. As an example, consider saving the nonlinear system in Example 3.32 and the related Jacobian matrix as the M-ils F.m and JF .m, respectively function Z-F(X) x=x (1) ;y-K2) ; Z-zeros(1,2); Z(1)-x 2-2x-y+0.5; Z (2)-x 2+4y 2-4 function W JF (X) The functions may be evaluated using the standard MATLAB commands. >A-fevalOF',[2.00 0.25]) A- 0.2500 0.2500 >V-JF ([2.00 0.25]) B- 2 -1 4 2 Program 3.7 Newton-Raphson Method). hetc To solve the nonlinear system 0. given one initial approximation Po and generating a sequence (Pk comverges to the solution P [P,iter,err]-nevdin(F, JF, P,delta,epsilon, maxi) is the systen saved as the M-file F.m JF is the Jacobian of F saved as the M-file JF.M ithe initial approxination to the solution - delta is the tolerance for P - epsilon is the tolerance for F(P) - maxi is the maximum number of iterations %Output - p is the approximation to the solution - iter is the number of iterations required - err is the error estimate for P Y-feval (F,P); for k-1:max1 J-feval (JF,P); Z-feval (F,Q); err-norm(Q-P); relerrserr/(norm(0)+eps); P-q ; Y-Z; iter-k; if (err

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analytics Systems Engineering Cybersecurity Project Management

Authors: Christopher Greco

1st Edition

168392648X, 978-1683926481

More Books

Students also viewed these Databases questions

Question

e. What difficulties did they encounter?

Answered: 1 week ago