필터 지우기
필터 지우기

i have written a code to get LU decomposition,now i need a code to solve LUx=b

조회 수: 3 (최근 30일)
L,U is n*n matrix i'm working on Doolittle method of solving Ax=b i need a code to solve for x

채택된 답변

Torsten
Torsten 2018년 2월 22일
First solve L*y = b for y, then solve U*x = y for x.
Best wishes
Torsten.
  댓글 수: 2
Amjad Green
Amjad Green 2018년 2월 24일
so just y=(L^-1)*b then (U^-1)*y=x ?
thanks so much
John D'Errico
John D'Errico 2018년 2월 24일
No. Don't use an inverse!
Did your teacher tell you about back and forward substitution? They should have done so by this point.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by