next up previous
Next: Timings and stability issues Up: A fast solver for Previous: Solving the bivariate interpolation

The algorithm

In this section we will describe the algorithm in detail using matlab style notation. We will briefly repeat the problem and notations used. We search for the bivariate polynomials $ p(x,y)$ and $ q(x,y)$, satisfying the following equation:

$\displaystyle p(\omega_i,\xi_j)\Phi_{i,j}+q(\omega_i,\xi_j)\Psi_{i,j}=0, $

for $ i\in\{1,\ldots,2d_1+1\}$ and $ j\in\{1,\ldots,d_2+1\}$. This corresponds with the degree of $ x$ limited to $ d_1$ and the degree of $ y$ limited to $ d_2$.

Definition 1   Let us first briefly review the notations we will use when describing the algorithm

The multivariate polynomials will be stored in a matrix, using the following form:

$\displaystyle q(x,y)$ $\displaystyle =$ $\displaystyle q_0(y)+q_1(y)x+q_2(y)x^2+\cdots+q_{d_1-1}(y)x^{d_1-1}+q_{d_1}(y)x^{d_1}$  

so that the first column corresponds to $ q_0(y)$ the second column to $ q_1(y)$ and the $ i$th column to $ q_i(y)$. The first component of every column corresponds to the coefficient of degree 0, the second to the coefficient of degree 1 and so on. The polynomial $ q(x,y)$ from above will thus be stored in a matrix in the following way:
    \begin{displaymath}\overbrace{
\begin{array}{ccccc}
\;\;\;1\;\;\; & \;\;\;x\;\;\...
...downarrow & \downarrow & \downarrow & & \downarrow
\end{array}}\end{displaymath}  
\begin{displaymath}\left\{
\begin{array}{cc}
1 & \rightarrow \\
y & \rightarrow...
...htarrow \\
\vdots \\
y^{d_2} & \rightarrow
\end{array}\right.\end{displaymath}   \begin{displaymath}\left(
\begin{array}{ccccc}
q_{0,0} & q_{1,0} & q_{2,0} & \cd...
...{0,d_2} & q_{1,d_2} & & \hdots & q_{d_1,d_2}
\end{array}\right)\end{displaymath}  

algorithm 1 (The polvecint procedure)   The polvecint procedure solves a one dimensional interpolation problem of the following form: Consider $ p(x)$ and $ q(x)$ as univariate polynomials in $ x$, $ \Phi$ and $ \Psi$ are vectors filled with scalars and $ \Omega=(\omega_1,\omega_2,\ldots,\omega_{n_1+n_2+1})$ corresponding to the interpolation points. Then the polvecint procedure returns us the polynomials $ p(x)$ and $ q(x)$ of degree respectively $ n_1$ and $ n_2$ satisfying the following equation:

$\displaystyle p(\omega_i)\Phi_{i}+q(\omega_i)\Psi_{i}=0.$ (5)

We denote this procedure as follows:
procedure $ [\mathbf{p},\mathbf{q}]:=\mathbf{polvecint}(\Omega,\Pi,\Psi,n_1,n_2)$.

This polvecint procedure does not return a unique solution, (however unique up to a constant). For a description of how to deal with this we refer to section 3.

We are now ready to describe the main algorithm for solving the bivariate interpolation problem. The algorithm consists of three large parts. First of all, we solve interpolation problems in $ x$ for different values of $ \xi_j$ and then in the next two parts we solve the problems towards $ y$.

algorithm 2 (The main algorithm)   We start with the first loop to construct the univariate polynomials in $ x$
# Solving the problem towards $ x$.
for $ i=1:d_2+1$
$ [\mathbf{p},\mathbf{q}]:=\mathbf{polvecint}(\Omega,\Phi_i,\Psi_i,d_1,d_1)$;
$ \mathbf{solpx}(i,:)=\mathbf{p}$;
$ \mathbf{solqx}(i,:)=\mathbf{q}$;
end
 $&bull#bullet;$
Determining the remaining $ (d_2+1)$ unknown parameters.
# Solving the problem towards $ y$ for $ p$.
for $ i=1:d_1+1$
$ [\mathbf{p},\mathbf{q}]:=\mathbf{polvecint}(\Xi,1,(-1)*\mathbf{solpx}(:,i),d_2,0)$;
$ \mathbf{P}(:,i)=\mathbf{p}'$;
end
# Solving the problem towards $ y$ for $ q$
for $ i=1:d_1+1$
$ [\mathbf{p},\mathbf{q}]:=\mathbf{polvecint}(\Xi,1,(-1)*\mathbf{solqx}(:,i),d_2,0)$;
$ \mathbf{Q}(:,i)=\mathbf{p}'$;
end
$ \mathbf{RETURN}$ $ \mathbf{P}$ and $ \mathbf{Q}$
end of procedure

In the next section it will be shown that the algorithm is efficient and stable.


next up previous
Next: Timings and stability issues Up: A fast solver for Previous: Solving the bivariate interpolation
Raf Vandebril 2004-04-19