• Non ci sono risultati.

Oslo,2April2009 StefanoDeMarchi Paduapoints:theory,computationandapplications

N/A
N/A
Protected

Academic year: 2021

Condividi "Oslo,2April2009 StefanoDeMarchi Paduapoints:theory,computationandapplications"

Copied!
56
0
0

Testo completo

(1)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Padua points: theory, computation and applications

Stefano De Marchi

Department of Computer Science, University of Verona

Oslo, 2 April 2009

Joint work with L. Bos (Calgary), M. Caliari (Verona), A. Sommariva and M. Vianello (Padua), Y. Xu (Eugene)

(2)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Outline

1

Motivations and aims

2

From Dubiner metric to Padua points

3

Padua points and their properties

4

Interpolation

5

Cubature

6

Numerical results

(3)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Motivations and aims

Well-distributed nodes: there exist various nodal sets for polynomial interpolation of even degree n in the square Ω = [−1, 1]

2

(

C.DeM.V.,

AMC04

), which turned out to be equidistributed w.r.t. Dubiner metric (

D., JAM95

) and which show optimal Lebesgue constant growth.

Efficient interpolant evaluation: the interpolant should be constructed without solving the Vandermonde system whose complexity is O(N

3

), N =

n+22

 for each pointwise evaluation. We look for compact formulae.

Efficient cubature: in particular computation of cubature weights for

non-tensorial cubature formulae.

(4)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The Dubiner metric

The Dubiner metric in the 1D:

µ

[−1,1]

(x, y ) = | arccos(x) − arccos(y)|, ∀x, y ∈ [−1, 1] . By using the Van der Corput-Schaake inequality (1935) for trig. polys.

µ

[−1,1]

(x, y ) := sup

kPk∞,[−1,1]≤1

1

deg(P) | arccos(P(x)) − arccos(P(y))| , with P ∈ P

n

([−1, 1]).

This metric generalizes to compact sets Ω ⊂ R

d

, d > 1:

µ

(x, y) := sup

kPk∞,Ω≤1

1

(deg(P)) | arccos(P(x)) − arccos(P(y))| .

(5)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The Dubiner metric

Conjecture(C.DeM.V.AMC04):

Nearly optimal interpolation points on a compact Ω are asymptotically equidistributed w.r.t. the Dubiner metric on Ω.

Once we know the Dubiner metric on a compact Ω, we have at least a method for producing ”good” points. Letting x = (x

1

, x

2

), y = (y

1

, y

2

)

Dubiner metric on the square:

max{| arccos(x

1

) − arccos(y

1

)|, | arccos(x

2

) − arccos(y

2

)|} ; Dubiner metric on the disk:

arccos



x

1

y

1

+ x

2

y

2

+ q

1 − x

12

− x

22

q

1 − y

12

− y

22



;

(6)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Dubiner points and Lebesgue constant

496 Dubiner nodes (i.e. degree n=30) and the comparison of Lebesgue constants for Random (RND), Euclidean (EUC) and Dubiner (DUB) points.

−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1

−1

−0.8

−0.6

−0.4

−0.2 0 0.2 0.4 0.6 0.8 1

0 2 4 6 8 10 12 14 16 18 20 22 24 26 28

degree n 1

1e+05 1e+10 1e+15

Lebesgue constants

RND 106.4·(2.3)n EUC 4.0·(2.3)n DUB 0.4·n3

Euclidean pts, areLeja-likepoints: max x∈Ωmin

y∈Xnkx − yk2.

(7)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Morrow-Patterson points

Let n be a positive even integer. The Morrow-Patterson points (MP) (cf. M.P. SIAM JNA 78) are the points

x

m

= cos

 mπ n + 2



, y

k

=

 

 

cos  2kπ n + 3



if m odd cos  (2k − 1)π

n + 3



if m even

1 ≤ m ≤ n + 1, 1 ≤ k ≤ n/2 + 1. Note: they are N = n + 2 2



.

(8)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Extended Morrow-Patterson points

The Extended Morrow-Patterson points (EMP) (C.DeM.V. AMC 05) are the points

x

mEMP

= 1

α

n

x

mMP

, y

kEMP

= 1 β

n

y

kMP

α

n

= cos(π/(n + 2)), β

n

= cos(π/(n + 3)).

Note: the MP and the EMP points are equally distributed w.r.t.

Dubiner metric on the square [−1, 1]

2

and unisolvent for

polynomial interpolation of degree n on the square.

(9)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Padua points

The Padua points (PD) can be defined as follows (C.DeM.V. AMC 05):

x

mPD

= cos  (m − 1)π n



, y

kPD

=

 

 

cos  (2k − 1)π n + 1



if m odd cos  2(k − 1)π

n + 1



if m even

1 ≤ m ≤ n + 1, 1 ≤ k ≤ n/2 + 1, N = n + 2 2

 .

The PD points are equispaced w.r.t. Dubiner metric on [−1, 1]

2

. They are modified Morrow-Patterson points discovered in Padua in 2003 by B.DeM.V.&W.

There are 4 families of PD pts: take rotations of 90 degrees,

clockwise for even degrees and counterclockwise for odd degrees.

(10)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Graphs of MP, EMP, PD pts and their Lebesgue constants

−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1

−1

−0.8

−0.6

−0.4

−0.2 0 0.2 0.4 0.6 0.8

1 MP

EMP PD

0 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60

degree n 10

100 1000

Lebesgue constants

MP (0.7·n+1.0)2 EMP (0.4·n+0.9)2 PD (2/π·log(n+1)+1.1)2

Left: the graphs of MP, EMP, PD for n = 8.Right: the growth of the corresponding Lebesgue constants.

(11)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Bivariate interpolation problem and Padua Pts

Let P

2n

be the space of bivariate polynomials of total degree ≤ n.

Question: is there a set Ξ ⊂ [−1, 1]

2

of points such that:

card(Ξ) = dim(P

2n

) =

(n+1)(n+2)2

;

the problem of finding the interpolation polynomial on Ξ of degree n is unisolvent;

the Lebesgue constant Λ

n

behaves like log

2

n for n → ∞.

Answer: yes, it is the set Ξ = Pad

n

of Padua points.

(12)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Padua points

Let us consider n + 1 Chebyshev–Lobatto points on [−1, 1]

C

n+1

=



z

jn

= cos  (j − 1)π n



, j = 1, . . . , n + 1



and the two subsets of points with odd or even indexes C

n+1O

= z

jn

, j = 1, . . . , n + 1, j odd C

n+1E

= z

jn

, j = 1, . . . , n + 1, j even Then, the Padua points are the set

Pad

n

= C

n+1O

× C

n+2E

∪ C

n+1E

× C

n+2O

⊂ C

n+1

× C

n+2

(13)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve

There exists an alternative representation as self-intersections and boundary contacts of the (parametric and periodic) generating curve:

γ(t) = (− cos((n + 1)t), − cos(nt)), t ∈ [0, π]

(14)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t = 0

(15)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

0,

(n(n+1))

i

(16)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

(n(n+1))

,

(n(n+1))

i

(17)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

(n(n+1))

,

(n(n+1))

i

(18)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

(n(n+1))

,

(n(n+1))

i

(19)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

(n(n+1))

,

(n(n+1))10π

i

(20)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

10π

(n(n+1))

,

(n(n+1))12π

i

(21)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

12π

(n(n+1))

,

(n(n+1))13π

i

(22)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

13π

(n(n+1))

,

(n(n+1))14π

i

(23)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

14π

(n(n+1))

,

(n(n+1))15π

i

(24)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

15π

(n(n+1))

,

(n(n+1))16π

i

(25)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

16π

(n(n+1))

,

(n(n+1))17π

i

(26)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

17π

(n(n+1))

,

(n(n+1))18π

i

(27)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

18π

(n(n+1))

,

(n(n+1))19π

i

(28)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

t ∈ h

19π

(n(n+1))

,

(n(n+1))20π

i

(29)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4)

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

C

n+1odd

× C

n+2even

(30)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The generating curve γ(t) (n = 4), is a Lissajous curve

-1 -0.5 0 0.5 1

-1 -0.5 0 0.5 1

Pad

n

= C

n+1O

× C

n+2E

∪ C

n+1E

× C

n+2O

⊂ C

n+1

× C

n+2

(31)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Lagrange polynomials

The fundamental Lagrange polynomials of the Padua points are

L

ξ

(x) = w

ξ

(K

n

(ξ, x) − T

n

1

)T

n

(x

1

)) , L

ξ

(η) = δ

ξη

, ξ , η ∈ Pad

n

(1) where

w

ξ

= 1 n(n + 1) ·

 

 

 1

2 if ξ is a vertex point 1 if ξ is an edge point 2 if ξ is an interior point

{w

ξ

} are weights of cubature formula for the prod. Cheb. measure, exact

”on almost” P

n2n

([−1, 1]

2

), i.e. pol. orthogonal to T

2n

(x

2

)

(32)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Reproducing kernel

K

n

(x, y) =

n

X

k=0 k

X

j=0

T ˆ

j

(x

1

) ˆ T

k−j

(x

2

) ˆ T

j

(y

1

) ˆ T

k−j

(y

2

) , T ˆ

j

= √

2T

j

, j ≥ 1 (2) is the reproducing kernel of P

2n

([−1, 1]

2

) equipped with the inner product

hf , gi = Z

[−1,1]2

f (x

1

, x

2

)g (x

1

, x

2

) dx

1

π p1 − x

12

dx

2

π p1 − x

22

, with reproduction property

Z

[−1,1]2

K

n

(x, y)p

n

(y)w (y)dy = p

n

(x), ∀p

n

∈ P

2n

w(x) = w (x

1

, x

2

) = 1 π p1 − x

12

1

π p1 − x

22

(33)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Lebesgue constant

The Lebesgue constant Λ

n

= max

x∈[−1,1]2

λ

n

(x), λ

n

(x) = X

ξ∈Padn

|L

ξ

(x)|

is bounded by (cf. BCDeMVX, Numer. Math. 2006)

Λ

n

≤ C log

2

n (3)

(optimal order of growth on a square).

(34)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Interpolant

From the representations (1) (Lagrange poly.) and (2) (reproducing kernel) the interpolant of a function f : [−1, 1]

2

→ R is

L

n

f (x) = X

ξ∈Padn

f (ξ)L

ξ

(x) = X

ξ∈Padn

f (ξ) [w

ξ

(K

n

(ξ, x) − T

n

1

)T

n

(x

1

))] =

=

n

X

k=0 k

X

j=0

c

j,k−j

T ˆ

j

(x

1

) ˆ T

k−j

(x

2

) − c

n,0

2 T ˆ

n

(x

1

) ˆ T

0

(x

2

) , where the coefficients

c

j,k−j

= X

ξ∈Padn

f (ξ)w

ξ

T ˆ

j

1

) ˆ T

k−j

2

), 0 ≤ j ≤ k ≤ n

can be computed once and for all.

(35)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Coefficient matrix

Let us define the coefficient matrix

C

0

=

c

0,0

c

0,1

. . . . . . c

0,n

c

1,0

c

1,1

. . . c

1,n−1

0

.. . .. . . . .

. . . .. . c

n−1,0

c

n−1,1

0 . . . 0

cn,0

2

0 . . . 0 0

and for a vector S = (s

1

, . . . , s

m

), S ∈ [−1, 1]

m

, the (n + 1) × m Chebyshev collocation matrix

T (S) =

T ˆ

0

(s

1

) . . . T ˆ

0

(s

m

) .. . . . . .. . T ˆ

n

(s

1

) . . . T ˆ

n

(s

m

)

(36)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Coefficient matrix factorization

Letting C

n+1

the vector of the Chebyshev-Lobatto pts C

n+1

= z

1n

, . . . , z

n+1n



we construct the (n + 1) × (n + 2) matrix G (f ) = (g

r ,s

) =

( w

ξ

f (z

rn

, z

sn+1

) if ξ = (z

rn

, z

sn+1

) ∈ Pad

n

0 if ξ = (z

rn

, z

sn+1

) ∈ (C

n+1

× C

n+2

) \ Pad

n

.

Then C

0

is essentially the upper-left triangular part of C (f ) = P

1

G (f )P

T2

P

1

= T(C

n+1

) ∈ R

(n+1)×(n+1)

and P

2

= T(C

n+2

) ∈ R

(n+1)×(n+2)

.

(37)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Coefficient matrix factorization

Exploiting the fact that the Padua points are union of two Chebyshev subgrids, we may define the two matrices

G

1

(f ) = w

ξ

f (ξ) , ξ = (z

rn

, z

sn+1

) ∈ C

n+1E

× C

n+2O

 G

2

(f ) = w

ξ

f (ξ) , ξ = (z

rn

, z

sn+1

) ∈ C

n+1O

× C

n+2E

 then we can compute the coefficient matrix as

C (f ) = T(C

n+1E

) G

1

(f ) (T(C

n+2O

))

t

+ T(C

n+1O

) G

2

(f ) (T(C

n+2E

))

t

We term this approach as MM, Matrix-Multiplication.

(38)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Coefficient matrix factorization by FFT

c

j,l

= X

ξ∈Padn

f (ξ)w

ξ

T ˆ

j

1

) ˆ T

l

2

) =

n

X

r =0 n+1

X

s=0

g

r ,s

T ˆ

j

(z

rn

) ˆ T

l

(z

sn+1

)

= β

j,l n

X

r =0 n+1

X

s=0

g

r ,s

cos jrπ

n cos lsπ n + 1 = β

j,l

M−1

X

s=0 N−1

X

r =0

g

r ,s0

cos 2jr π N

!

cos 2lsπ M where N = 2n, M = 2(n + 1) and

β

j,l

=

 

 

1 j = l = 0 2 j 6= 0, l 6= 0

√ 2 otherwise

g

r ,s0

=

( g

r ,s

0 ≤ r ≤ n and 0 ≤ s ≤ n + 1

0 r > n or s > n + 1

(39)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Coefficient matrix factorization by FFT

The coefficients c

j,l

can be computed by a double Discrete Fourier Transform.

ˆ

g

j,s

= REAL

N−1

X

r =0

g

r ,s0

e

−2πijr /N

!

, 0 ≤ j ≤ n, 0 ≤ s ≤ M − 1

c

j,l

β

j,l

= ˆ g ˆ

j,l

= REAL

M−1

X

s=0

ˆ

g

j,s

e

−2πils/M

!

, 0 ≤ j ≤ n, 0 ≤ l ≤ n − j

(4)

(40)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Matlab

R

code for the FFT approach

Input: G ↔ G(f )

Gfhat = real(fft(G,2*n));

Gfhat = Gfhat(1:n+1,:);

Gfhathat =real(fft(Gfhat,2*(n+1),2));

C0f = Gfhathat(:,1:n+1);

C0f =2*C0f; C0f(1,:) = C0f(1,:)/sqrt(2);

C0f(:,1) = C0f(:,1)/sqrt(2);

C0f = fliplr(triu(fliplr(C0f)));

C0f(n+1,1) = C0f(n+1,1)/2;

Output: C0 ↔ C

0

(41)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Linear algebra approach vs FFT approach

The construction of the coefficients is performed by a matrix-matrix product.

It has been easily and efficiently implemented in Fortran77 (by, eventually optimized, BLAS) (cf. CDeMV, TOMS 2008) and in Matlab

R

(based on optimized BLAS).

The coefficients are approximated Fourier–Chebyshev

coefficients, hence they can be computed by FFT techniques.

FFT is competitive and more stable than the MM approach at

high degrees of interpolation (see later).

(42)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Evaluating the interpolant (in Matlab)

Given a point x = (x

1

, x

2

) and the coefficient matrix C

0

, the polynomial interpolation formula can be evaluated by a double matrix-vector product

L

n

f (x) = T(x

1

)

T

C

0

(f )T(x

2

)

If X = (X

1

, X

2

) (X

1,2

column vectors) is a set of target points, then L

n

f (X) = diag (T(X

1

))

t

C

0

(f ) T(X

2

) 

(5) The result L

n

f (X) is a (column) vector.

If X = X

1

× X

2

is a Cartesian grid then

L

n

f (X) = (T(X

1

))

t

C

0

(f ) T(X

2

) 

t

(6)

The result L

n

f (X) is a matrix whose i-th row and j-th column

contains the evaluation of the interpolant as the built-in function

meshgrid of Matlab

R

.

(43)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Beyond the square

The interpolation formula can be extended to other domains Ω ⊂ R

2

, by means of a suitable mapping of the square. Given

σ : [−1,1]

2

→ Ω t 7→ x = σ(t)

it is possible to construct the (in general nonpolynomial) interpolation formula

L

n

f (x) = T(σ

1

(x))

T

C

0

(f ◦ σ)T(σ

2

(x))

(44)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Cubature

Integration of the interpolant at the Padua points gives a

nontensorial Clenshaw–Curtis cubature formula (cf. SVZ, Numer.

Algorithms 2008) Z

[−1,1]2

f (x)dx ≈ Z

[−1,1]2

L

n

f (x)dx =

n

X

k=0 k

X

j=0

c

j,k−j

m

j,k−j

=

n

X

j=0 n

X

l=0

c

j,l

m

j,l

=

n

X

j even n

X

l even

c

j,l

m

j,l

(45)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Cubature

Where the moments m

j,l

are m

j,l

=

Z

1

−1

T ˆ

j

(t)dt Z

1

−1

T ˆ

l

(t)dt

Since

Z

1

−1

T ˆ

j

(t)dt =

 

 

 

 

2 j = 0

0 j odd

2 √ 2

1 − j

2

j even

(46)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

The Matlab

R

code for the cubature

Input: C0f↔ C

0

(f ) j = [0:2:n];

mom = 2*sqrt(2)./(1-j.^2);

mom(1) = 2;

[M1,M2]=meshgrid(mom);

M = M1.*M2;

C0fM = C0f(1:2:n+1,1:2:n+1).*M;

Int = sum(sum(C0fM));

Output: Int↔ I

n

(f )

(47)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Cubature

It is often desiderable having a cubature formula involving the function values at the nodes and the corresponding cubature weights. Using the formula for the coefficients c

j,l

, we can write

I

n

(f ) = X

ξ∈Padn

λ

ξ

f (ξ)

= X

ξ∈Cn+1E ×Cn+2O

λ

ξ

f (ξ) + X

ξ∈Cn+1O ×Cn+2E

λ

ξ

f (ξ)

where

λ

ξ

= w

ξ n

X

j even n

X

l even

m

j,l

T ˆ

j

1

) ˆ T

l

2

) (7)

(48)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Cubature

Defining the Chebyshev matrix corresponding to even degrees

T

E

(S) =

T ˆ

0

(s

1

) · · · T ˆ

0

(s

m

) T ˆ

2

(s

1

) · · · T ˆ

2

(s

m

)

.. . · · · .. . T ˆ

pn

(s

1

) · · · T ˆ

pn

(s

m

)

∈ R

([n2]+1)×m

and the matrices of weights on the subgrids, W

1

= w

ξ

, ξ ∈ C

n+1E

× C

n+2O



t

, W

2

= w

ξ

, ξ ∈ C

n+1O

× C

n+2E



t

, then the cubature weights {λ

ξ

} can be computed in the matrix form

L

1

= λ

ξ

, ξ ∈ C

n+1E

× C

n+2O



t

= W

1

. T

E

(C

n+1E

))

t

M

0

T

E

(C

n+2O

) 

t

L

2

= λ

ξ

, ξ ∈ C

n+1O

× C

n+2E



t

= W

2

. T

E

(C

n+1O

))

t

M

0

T

E

(C

n+2E

) 

t

where M

0

=  m

j,l



(moment matrix) and the dot means that the final

product is made componentwise.

(49)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Cubature

1

An FFT-based implementation is then feasible, in analogy to what happens in the univariate case with the Clenshaw-Curtis formula (cf.

Waldvogel, BIT06). The algorithm is quite similar the one for interpolation.

2

The cubature weights are not all positive, but the negative ones are few and of small size and

n→∞

lim X

ξ∈Padn

ξ

| = 4

i.e. stability and convergence.

(50)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Numerical results

Language: Matlab

R

7.6.0 Processor: Intel Core2 Duo 2.2GHz.

n 20 40 60 80 100 200 300 400 500

FFT 0.002 0.002 0.002 0.002 0.006 0.029 0.055 0.088 0.137

MM 0.003 0.001 0.003 0.004 0.006 0.022 0.065 0.142 0.206

Table: CPU time (in seconds) for the computation of the interpolation coefficients at a sequence of degrees.

n 20 40 60 80 100 200 300 400 500

FFT 0.005 0.001 0.003 0.003 0.005 0.025 0.048 0.090 0.142

MM 0.004 0.000 0.001 0.002 0.003 0.010 0.025 0.043 0.071

Table: CPU time (in seconds) for the computation of the cubature

weights at a sequence of degrees.

(51)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Numerical results

1e-14 1e-12 1e-10 1e-08 1e-06 0.0001 0.01 1

0 20 40 60 80 100

Relativeinterpolationerror

degreen

MM

FFT

1e-16 1e-14 1e-12 1e-10 1e-08 1e-06 0.0001 0.01 1

0 20 40 60 80 100

Relative ubatureerror

degreen

MM

FFT

Figure: Relative errors of interpolation (left) and cubature (right) versus

the interpolation degree for the Franke test function in [0, 1]

2

, by the

Matrix Multiplication (MM) and the FFT-based algorithms.

(52)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Numerical results

1e-16 1e-14 1e-12 1e-10 1e-08 1e-06 0.0001 0.01 1

0 100 200 300 400 500

Relativeinterpolationerror

Numberofpoints Tens.CL

Paduapts.

1e-05 0.0001 0.001 0.01 0.1

0 100 200 300 400 500

Relativeinterpolationerror

Numberofpoints Tens.CL

Paduapts.

Figure: Relative interpolation errors versus the number of interpolation

points for the Gaussian f (x) = exp (−|x|

2

) (left) and the C

2

function

f (x) = |x|

3

(right) in [−1, 1]

2

; Tens. CL = Tensorial Chebyshev-Lobatto

interpolation.

(53)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Numerical results

1e-16 1e-14 1e-12 1e-10 1e-08 1e-06 0.0001

0 100 200 300 400 500

Relative ubatureerror

Numberofpoints Tens.CCpts.

Nontens.CCPaduapts.

Tens.GLLpts.

OSpts.

1e-09 1e-08 1e-07 1e-06 1e-05 0.0001 0.001 0.01

0 100 200 300 400 500

Relative ubatureerror

Numberofpoints Tens.CCpts.

Nontens.CCPaduapts.

Tens.GLLpts.

OSpts.

Figure: Relative cubature errors versus the number of cubature points (CC = Clenshaw-Curtis, GLL = Gauss-Legendre-Lobatto, OS =

Omelyan-Solovyan) for the Gaussian f (x) = exp (−|x|

2

) (left) and the C

2

function f (x) = |x|

3

(right); the integration domain is [−1, 1]

2

, the

integrals up to machine precision are, respectively: 2.230985141404135

and 2.508723139534059.

(54)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Conclusions

We studied different families of point sets for polynomial interpolation on the square.

The most promising, from theoretical purposes and computational cost both of the interpolant and Lebesgue constant growth are the Padua points.

More on Padua points (papers, software, links) at the CAA research group:

http://www.math.unipd.it/∼marcov/CAA.html

http://en.wikipedia.org/wiki/Padua points.

(55)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Main references

1 M. Caliari, S. De Marchi, A. Sommariva and M. Vianello: Padua2DM: fast interpolation and cubature at Padua points in Matlab/Octave, Submitted (2009).

2 M. Caliari, S. De Marchi and M. Vianello: Bivariate polynomial interpolation on the square at new nodal sets, Applied Math. Comput. vol. 165/2, pp. 261-274 (2005)

3 L. Bos, M. Caliari, S. De Marchi and M. Vianello: A numerical study of the Xu polynomial interpolation formula in two variables, Computing 76(3-4)(2006), 311–324 .

4 L. Bos, S. De Marchi and M. Vianello: On the Lebesgue constant for the Xu interpolation formula J.

Approx. Theory 141 (2006), 134–141.

5 L. Bos, M. Caliari, S. De Marchi and M. Vianello: Bivariate interpolation at Xu points: results, extensions and applications, Electron. Trans. Numer. Anal. 25 (2006), 1–16.

6 L. Bos, S. De Marchi, M. Caliari, M. Vianello and Y. Xu: Bivariate Lagrange interpolation at the Padua points: the generating curve approach, J. Approx. Theory 143 (2006), 15–25.

7 L. Bos, S. De Marchi, M. Vianello and Y. Xu: Bivariate Lagrange interpolation at the Padua points: the ideal theory approach, Numer. Math., 108(1) (2007), 43-57.

8 M. Caliari, S. De Marchi, and M. Vianello: Bivariate Lagrange interpolation at the Padua points:

computational aspects, J. Comput. Appl. Math., Vol. 221 (2008), 284-292.

9 M. Caliari, S. De Marchi and M. Vianello: Algorithm 886: Padua2D: Lagrange Interpolation at Padua Points on Bivariate Domains, ACM Trans. Math. Software, Vol. 35(3), Article 21, 11 pages, 2008.

10 Sommariva, A., Vianello, M., Zanovello, R.: Nontensorial Clenshaw-Curtis cubature. Numer. Algorithms 49, 409–427 (2008).

(56)

Motivations and aims From Dubiner metric to Padua points Padua points and their properties Interpolation Cubature Numerical results

Second DOLOMITES WORKSHOP ON

CONSTRUCTIVE APPROXIMATION AND APPLICATIONS Alba di Canazei, Trento (Italy), September 4-9, 2009

http://www.math.unipd.it/∼dwcaa09/

Riferimenti

Documenti correlati

Here we show four families of Padua points for interpolation at any even or odd degree n, and we present a stable and efficient implementation of the corresponding

We have recently proved that the Lebesgue constant of these points grows like log 2 (n), n being the de- gree, as with the best known points for the square, and we have imple- mented

In this paper we present a stable and efficient Fortran implementation of the Lagrange interpolation formula at the Padua points, with cost O(n 3 ) flops for the evaluation (once

Keywords: bivariate Lagrange interpolation, Padua points, bivariate Chebyshev or- thogonal basis, nontensorial Clenshaw-Curtis-like cubature, matrix product formula- tion, FFT. ∗

The Padua points, recently studied during an international collaboration at the University of Padua, are the first known near-optimal point set for bivariate polynomial interpolation

The Padua points, recently studied during an international collaboration at the University of Padua, are the first known near-optimal point set for bivariate polynomial interpolation

Such geometric WAMs, as well as those obtained by finite unions and products, can be used directly for discrete Least Squares approximation, as well as for the extraction of

Abstract We have implemented in Matlab/Octave two fast algorithms for bivariate Lagrange interpolation at the so-called Padua points on rectangles, and the corresponding versions