Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following code is the algorithm of the clc clear all n=3; maxxer=0.001; b=50*rand(n,1); er=1; A=zeros(n,n); A [420;2103:03 2]; b=[12; 7; -3]; x0=[0; 0;

 

The following code is the algorithm of the clc clear all n=3; maxxer=0.001; b=50*rand(n,1); er=1; A=zeros(n,n); A [420;2103:03 2\]; b=[12; 7; -3\]; x0=[0; 0; 0\]; X=X; while er>maxxer for i=1:n t=0; k=0; end for j=1:1-1 t=t+ (A(ij)/A(i,i))*(x(j)); end for j=i+1:n k=k+(A(i,j)/A(i,i))*(x0()); end x(i)-(b(i)/A(i,i))-t-k; error. er=max(abs(x-x0))/max(abs(x)); XO=X; X end Method with accuracy by checking the

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_2

Step: 3

blur-text-image_3

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

Operating Systems Internals and Design Principles

Authors: William Stallings

8th edition

133805913, 978-0133805918

More Books

Students also viewed these Programming questions

Question

Solve each equation or inequality. |6x8-4 = 0

Answered: 1 week ago