The Hilbert matrix is defined as
Write a routine that generates and for given .
Find the inverse for . What can you say about the errors in the solution? (subtract the exact solution from the numerical solution obtained).
The exact inverses are
4 -6 -6 12 25 -300 1050 -1400 630 -300 4800 -18900 26880 -12600 1050 -18900 79380 -117600 56700 -1400 26880 -117600 179200 -88200 630 -12600 56700 -88200 44100
Solve the system for . What can you say about the errors in the solution? (subtract the exact solution from the numerical solution obtained).
This is an example of an ill-conditioned system.
The main program and all additional routines for this example will be submitted in a file lin_hilbert.f90.