ZPTSVX Example

To solve the equations

Ax = b,

where A is the Hermitian positive definite tridiagonal matrix

A = $\displaystyle \left(\vphantom{
\begin{array}{ccccc}
16.0 & 16.0 - 16.0 i & 0 ...
...0 i & 46.0 & 1.0 + 4.0 i \\
0 & 0 & 1.0 - 4.0 i & 21.0
\end{array} }\right.$$\displaystyle \begin{array}{ccccc}
16.0 & 16.0 - 16.0 i & 0 & 0 \\
16.0 + 1...
...18.0 - 9.0 i & 46.0 & 1.0 + 4.0 i \\
0 & 0 & 1.0 - 4.0 i & 21.0
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{ccccc}
16.0 & 16.0 - 16.0 i & 0 ...
...0 i & 46.0 & 1.0 + 4.0 i \\
0 & 0 & 1.0 - 4.0 i & 21.0
\end{array} }\right)$

and

b = $\displaystyle \left(\vphantom{
\begin{array}{rr}
64.0 + 16.0 i & -16.0 - 32.0...
...0.0 i & 71.0 - 74.0 i \\
14.0 - 27.0 i & 35.0 + 15.0 i
\end{array} }\right.$$\displaystyle \begin{array}{rr}
64.0 + 16.0 i & -16.0 - 32.0 i\\
93.0 + 62....
... 78.0 - 80.0 i & 71.0 - 74.0 i \\
14.0 - 27.0 i & 35.0 + 15.0 i
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{rr}
64.0 + 16.0 i & -16.0 - 32.0...
...0.0 i & 71.0 - 74.0 i \\
14.0 - 27.0 i & 35.0 + 15.0 i
\end{array} }\right)$.

Error estimates for the solutions and an estimate of the reciprocal of the condition number of A are also output.

Example program
Example data
Example results