DGESV Example

To solve the equations

Ax = b,

where A is the general matrix

A = $\displaystyle \left(\vphantom{
\begin{array}{rrrr}
1.80 & 2.88 & 2.05 & -0.89...
... -2.69 & -2.90 & -1.04 \\
-1.11 & -0.66 & -0.59 & 0.80
\end{array} }\right.$$\displaystyle \begin{array}{rrrr}
1.80 & 2.88 & 2.05 & -0.89 \\
5.25 & -2.9...
...
1.58 & -2.69 & -2.90 & -1.04 \\
-1.11 & -0.66 & -0.59 & 0.80
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{rrrr}
1.80 & 2.88 & 2.05 & -0.89...
... -2.69 & -2.90 & -1.04 \\
-1.11 & -0.66 & -0.59 & 0.80
\end{array} }\right)$  and  b = $\displaystyle \left(\vphantom{
\begin{array}{r}
9.52 \\
24.35 \\
0.77 \\
-6.22
\end{array} }\right.$$\displaystyle \begin{array}{r}
9.52 \\
24.35 \\
0.77 \\
-6.22
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{r}
9.52 \\
24.35 \\
0.77 \\
-6.22
\end{array} }\right)$.

Details of the LU factorization of A are also output.

Example program
Example data
Example results