Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Matlab 10.19 Develop a user-friendly program for LU decomposition, in cluding the capability to evaluate the matrix inverse. Base the pro- gram on

Please use Matlab image text in transcribed
image text in transcribed
image text in transcribed
10.19 Develop a user-friendly program for LU decomposition, in cluding the capability to evaluate the matrix inverse. Base the pro- gram on Figs. 10.2 and 10.5 LU DECOMPOSITION AND MATRIX INVERSION SUB Ludecomp (a, b, n, tol. x. er) END IF DIM On. S er = 0 CALL Decompose(a, n. tol, o, s, er) IF er -1 THEN END Decompose SUB Pivot (a, o. s. n. k) big = ABS(ao(k),k/so(k)) DOFOR 11k+1. rn CALL Substitute(a, o. n, b. x) END IF END Ludecomp dumy ABS(aoror) IF dumy > big THEN SUB Decompose (a, n, tol, o, s. er) big - dummy END IF ABS(a,1) END DO IF ABS(a, J)s, THEN S,ABS(a j)O END DO END DO DOFOR k = 1, n-1 END Pivot SUB Substitute (a, o. n. b. x) CALL Pivot(a, o. s. n. k) IF ABS(ao(k).ds(k))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions