10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.6 Polynomial arithmetic 515<br />

such sums according to<br />

<br />

xjT kj = T −k2 /2 <br />

xjT −j2 /2 <br />

T (−k−j)2 /2<br />

,<br />

j<br />

j<br />

and thus calculates the left-hand sum via the convolution implicit in the righthand<br />

sum. However, in certain settings it is somewhat more convenient to<br />

avoid halving the squares in the exponents, relying instead on properties of<br />

the triangular numbers ∆n = n(n +1)/2. Two relevant algebraic properties<br />

of these numbers are<br />

∆α+β =∆α +∆β + αβ,<br />

∆α =∆−α−1.<br />

A variant of the Bluestein trick can accordingly be derived as<br />

<br />

xjT kj = T ∆−k<br />

<br />

xjT ∆j T −∆−(k−j) .<br />

j<br />

j<br />

Now the implicit convolution can be performed using only integral powers<br />

of the T constant. Moreover, we can employ an efficient, cyclic convolution<br />

by carefully embedding the x signal in a longer, zero-padded signal and<br />

reindexing, as in the following algorithm.<br />

Algorithm 9.6.6 (Evaluation of polynomial on geometric progression).<br />

Let x(t) = D−1 j=0 xjtj , and let T have an inverse in the arithmetic domain.<br />

This algorithm returns the sequence of values x(T k ) , k ∈ [0,D− 1].<br />

1. [Initialize]<br />

Choose N =2n such that N ≥ 2D;<br />

for(0 ≤ j

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

Saved successfully!

Ooh no, something went wrong!