Question: Write a program to use the C++ class GESolver that contains the routines PLUFactorization and SolvingPhase (see Canvas for code) to solve the linear system

Write a program to use the C++ class GESolver that contains the routines PLUFactorization and SolvingPhase (see Canvas for code) to solve the linear system Ax = b to obtain the approximate solution . (If this is possible. A may be noninvertible. Remember to check before calling SolvingPhase) You should also compute det(A) using the triangular factorization produced by PLUFactorization. The first record of each system contains the order n of the system. The next n records each contain a row of A and the corresponding element of b. OUTPUT: For each system, write the following at the top of a new page. A.b: ain 011 021 a12 022 bi b2 a2n : : : anl an2 ann bn W: Win W11 W21 W12 W22 W2n : : Wnl Wn2 Wnn det(A): det A X: i 2 n NOTE: Use a %18.9f format for all output. Write a program to use the C++ class GESolver that contains the routines PLUFactorization and SolvingPhase (see Canvas for code) to solve the linear system Ax = b to obtain the approximate solution . (If this is possible. A may be noninvertible. Remember to check before calling SolvingPhase) You should also compute det(A) using the triangular factorization produced by PLUFactorization. The first record of each system contains the order n of the system. The next n records each contain a row of A and the corresponding element of b. OUTPUT: For each system, write the following at the top of a new page. A.b: ain 011 021 a12 022 bi b2 a2n : : : anl an2 ann bn W: Win W11 W21 W12 W22 W2n : : Wnl Wn2 Wnn det(A): det A X: i 2 n NOTE: Use a %18.9f format for all output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
