Lu method is the modification of Gauss elimination so as to do book keeping of row operations.( see book on Numerical methods by S.S Sastry PHI . It works in floating point

t Gauss elimination can be modified to work in integers .We just use cross multiplication.

However Lu method rests on making pivot unity and rests on division. The advantage is that it can store bookkeeping in the coefficient matrix itself and does not require additional storage. Also once the coefficient matrix is decomposed even when the right hand side vector B of the system AX = B, changes one need not do gauss elimination again but just do forward and backward substitution.

Numerical recipes in c uses Crout's method but Gauss elimination can be used more effectively for Lu factorization.

the question intends how to avoid the division initially . final answer may be in rationals.

one important tip is now pivot must be smallest element in magnitude not zero.

i have attached Lu program in C over floating points.

More Dr. Anil Anant Pedgaonkar's questions See All
Similar questions and discussions