19.07.2014 Views

Contents - Student subdomain for University of Bath

Contents - Student subdomain for University of Bath

Contents - Student subdomain for University of Bath

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A.5. VANDERMONDE SYSTEMS 219<br />

whereas we need to solve a system <strong>of</strong> the <strong>for</strong>m<br />

k 1 x 1 + k 2 x 2 + · · · + k n x n = w 1<br />

k1x 2 1 + k2x 2 2 + · · · + knx 2 n = w 2<br />

.<br />

k1 n x 1 + k2 n x 2 + · · · + knx n n = w n .<br />

(A.11)<br />

By comparison with (A.10), we have transposed the matrix (which is not a<br />

problem, since the inverse <strong>of</strong> the transpose is the traspose <strong>of</strong> the inverse), and<br />

multiplied column i by an extra factor <strong>of</strong> k i . From Corollary 25, we can deduce<br />

the criteria <strong>for</strong> this system to be soluble.<br />

Corollary 26 If all the k i are distinct and non-zero, then the system (A.11) is<br />

soluble.<br />

The following variant <strong>of</strong> Algorithm 43 will solve the system.<br />

Algorithm 44 (Vandermonde variant solver)<br />

Input: Vandermonde style data (k 1 , . . . , k n ), right-hand side w.<br />

Output: Solution x to (A.11)<br />

x := 0<br />

P := ∏ n<br />

i=1 (z − k i) #O(n 2 )<br />

<strong>for</strong> i := 1 to n<br />

Q := P/(z − k i ) #nO(n)<br />

D := k i P (k i ) #nO(n) by Horner’s rule<br />

<strong>for</strong> j := 1 to n<br />

coeff(Q,z<br />

x i := x i + w j−1 )<br />

j D

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!