Instead of using the superfast version of the rational interpolation
solver we used the
algorithm, however, even when we use this
complexity our algorithm is even faster than
, and can
therefore be considered to be superfast. The reason why we prefer to
use the
univariate interpolation solver instead of the
version, is because
and
is a quite large constant. Therefor the
version will in fact be faster then the
version for not too large values of
. To find a unique solution we
had to insert some more conditions on the polynomials, we chose to
find polynomials which are monic with regard to the variable
in
.
The data of the tests we performed were randomly generated, i.e., the
matrices
and
are randomly generated within
. For
the first figure the interpolation points are the roots of unity.
Figure 1 shows us the 1-norm of the residual generated by
the algorithm. For a fixed size always five problems of the same
dimension were considered. You can see that for problems up to the
size of two million the error stays within the range of the
acceptable. The residual that we calculated here is an absolute
residual, and is the 1-norm of the matrix
which consists of the
following values:
When dealing with other kinds of interpolation points, it is very
important to choose a good representation of the polynomials. When
using a representation in an orthogonal basis satisfying a three terms
recurrence, the complexity of the algorithm does not change (only the
constant factor may increase a bit (This factor corresponds with
in 6)), but the accuracy can increase dramatically.
We performed tests on equal spaced interpolation points, with the
standard basis and the Chebyshev basis, the second basis gave a
solution which was more accurate, up to a factor
, i.e., when the
first only had 4 accurate digits the second had about 8 accurate
digits. This means that it is extremely important to take a good basis
representation, to get accurate results.
Another obvious example that states our assumptions here above, is the
following. We consider the same interpolation problem, which we try to
solve now in Chebyshev interpolation points generated in the interval
. Figure 2 corresponds to the solution of this
problem when using the standard basis representation. The residual
that is displayed is again the absolute residual.
As can immediately be seen in the graph, very quick all the significant digits are lost, and the error keeps growing, in this case, with this polynomial representation the algorithm does not work at all. In Figure 3 the same problems are solved, but now, instead of presenting the polynomials in the standard basis we present them in the Chebyshev basis, this adaptation in the algorithm, does not increase the complexity, but dramatically increases the numerical stability, as the figure clearly shows.
These final examples show once more that it is very important to choose a good basis representation for the polynomials, in order to get accurate results.
We will now briefly deduce the asymptotic complexity of the algorithm
that we use (when using the superfast rational interpolation approach,
the complexity is of course even smaller). We assume that the
rational interpolation solver is of order
. The first step
consists of solving
interpolation problems of order
. The next step consists of solving
interpolation problems of order
, this gives us as
complexity, when we take
The number of unknown parameters in the system we solve equals
, when we denote this number with
, we clearly
get:
When using the superfast solver we get the folowing complexity:
The next two figures are comparisons between the timed speed and the
theoretical speed we deduced. You can see in Figure 4,
which only shows the results for
that the algorithm is
faster than
. There is also a comparison between our
solver and Gaussian elimination, you can see that the crossover
appears to be lying around
, so our algorithm is not only
theoretically faster, but even in practical applications, our
algorithm performs better than Gaussian elimination.
The last figure makes a comparison between the timed results and
Gaussian elimination. In this figure also measurements for
are shown.