Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
L,U is n*n matrix i'm working on Doolittle method of solving Ax=b i need a code to solve for x

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by