• Aucun résultat trouvé

Algorithmique semi-num´erique rapide des s´eries de Tchebychev

N/A
N/A
Protected

Academic year: 2022

Partager "Algorithmique semi-num´erique rapide des s´eries de Tchebychev"

Copied!
98
0
0

Texte intégral

(1)

Algorithmique semi-num´ erique rapide des s´ eries de Tchebychev

Alexandre Benoit

Projet Algorithms

INRIA

Soutenance de th`ese Directeur de th`ese : Bruno Salvy

18 juillet 2012

(2)

2 / 36

Summary

Goal

Using computer algebra, findfast algorithms to compute guaranteed polynomial approximationsof functions.

Framework

Approximation theory. Computer algebra:

Solutions of linear differential equations. Fast algorithms.

How

Chebyshev expansion: very good approximation on an interval with good properties for computer algebra.

(3)

2 / 36

Summary

Goal

Using computer algebra, find fast algorithms to compute guaranteed polynomial approximations of functions.

Framework

Approximation theory.

Computer algebra:

Solutions of linear differential equations. Fast algorithms.

How

Chebyshev expansion: very good approximation on an interval with good properties for computer algebra.

(4)

2 / 36

Summary

Goal

Using computer algebra, find fast algorithms to compute guaranteed polynomial approximations of functions.

Framework

Approximation theory.

Computer algebra:

Solutions of linear differential equations.

Fast algorithms.

How

Chebyshev expansion: very good approximation on an interval with good properties for computer algebra.

(5)

2 / 36

Summary

Goal

Using computer algebra, find fast algorithms to compute guaranteed polynomial approximations of functions.

Framework

Approximation theory.

Computer algebra:

Solutions of linear differential equations.

Fast algorithms.

How

Chebyshev expansion: very good approximation on an interval with good properties for computer algebra.

(6)

2 / 36

Summary

Goal

Using computer algebra, find fast algorithms to compute guaranteed polynomial approximations of functions.

Framework

Approximation theory.

Computer algebra:

Solutions of linear differential equations.

Fast algorithms.

How

Chebyshev expansion: very good approximation on an interval with good properties for computer algebra.

(7)

3 / 36

Basic Properties of Chebyshev Polynomials

Tn(cos(θ)) = cos(nθ)

Z 1

−1

Tn(x)Tm(x)

√1−x2 dx=

0 if m6=n π if m= 0

π

2 otherwise

Tn+1(x) = 2xTn(x)−Tn−1(x) (1−x2)Tn00(x)−xTn0(x) +n2Tn(x) = 0

Tn(x) =

bn/2c

X

k=0

(−1)k2n−2k−1 n n−k

n−k k

xn−2k

T0(x) = 1 T1(x) =x T2(x) = 2x2−1 T3(x) = 4x3−3x T4(x) = 8x4−8x2+ 1

(8)

3 / 36

Basic Properties of Chebyshev Polynomials

Tn(cos(θ)) = cos(nθ)

Z 1

−1

Tn(x)Tm(x)

√1−x2 dx=

0 if m6=n π if m= 0

π

2 otherwise

Tn+1(x) = 2xTn(x)−Tn−1(x) (1−x2)Tn00(x)−xTn0(x) +n2Tn(x) = 0

Tn(x) =

bn/2c

X

k=0

(−1)k2n−2k−1 n n−k

n−k k

xn−2k

T0(x) = 1 T1(x) =x T2(x) = 2x2−1 T3(x) = 4x3−3x T4(x) = 8x4−8x2+ 1

(9)

3 / 36

Basic Properties of Chebyshev Polynomials

Tn(cos(θ)) = cos(nθ)

Z 1

−1

Tn(x)Tm(x)

√1−x2 dx=

0 if m6=n π if m= 0

π

2 otherwise

Tn+1(x) = 2xTn(x)−Tn−1(x) (1−x2)Tn00(x)−xTn0(x) +n2Tn(x) = 0

Tn(x) =

bn/2c

X

k=0

(−1)k2n−2k−1 n n−k

n−k k

xn−2k

T0(x) = 1 T1(x) =x T2(x) = 2x2−1 T3(x) = 4x3−3x T4(x) = 8x4−8x2+ 1

(10)

4 / 36

Approximation by Taylor or Chebyshev Series

Two approximations of a functionf: by a Taylor series

f =

+∞

X

n=0

unxn,

un= f(n)(0) n! ,

or by Chebyshev series

f =

+∞

X

n=0

cnTn(x),

cn= 1 π

Z 1

−1

Tn(t) f(t)

1−t2dt.

(11)

4 / 36

Approximation by Taylor or Chebyshev Series

Two approximations of a functionf: by a Taylor series

f =

+∞

X

n=0

unxn,

un= f(n)(0) n! ,

or by Chebyshev series

f =

+∞

X

n=0

cnTn(x),

cn = 1 π

Z 1

−1

Tn(t) f(t)

1−t2dt.

(12)

5 / 36

Chebyshev Truncations are Near-Best

Let f be continuous on [−1,1] with degree n Chebyshev truncation fn and best approximant pn (the polynomial of degree at most n that minimizes kf −pk= sup−1≤x≤1|f(x)−p(x)|),n≥1. Then

kf −fnk

4 + 4

π2log(n+ 1)

| {z }

Λn

kf−pnk.

Λ10= 4.93...→<3 bits Λ30= 5.37...→<3 bits Λ100= 5.87...→<3 bits Λ1000= 6.80...→<3 bits

It’s faster to compute fn instead ofpn

x

−1 −1/2 1/2 1

−5×10−3 5×10−3

Chebyshev truncation of degree4 Best approximant of degree4

error of the approximation ofexp

(13)

5 / 36

Chebyshev Truncations are Near-Best

Let f be continuous on [−1,1] with degree n Chebyshev truncation fn and best approximant pn (the polynomial of degree at most n that minimizes kf −pk= sup−1≤x≤1|f(x)−p(x)|),n≥1. Then

kf −fnk

4 + 4

π2log(n+ 1)

| {z }

Λn

kf−pnk.

Λ10= 4.93...→<3 bits Λ30= 5.37...→<3 bits Λ100= 5.87...→<3 bits Λ1000= 6.80...→<3 bits

It’s faster to compute fn instead ofpn

x

−1 −1/2 1/2 1

−5×10−3 5×10−3

Chebyshev truncation of degree4 Best approximant of degree4

error of the approximation ofexp

(14)

5 / 36

Chebyshev Truncations are Near-Best

Let f be continuous on [−1,1] with degree n Chebyshev truncation fn and best approximant pn (the polynomial of degree at most n that minimizes kf −pk= sup−1≤x≤1|f(x)−p(x)|),n≥1. Then

kf −fnk

4 + 4

π2log(n+ 1)

| {z }

Λn

kf−pnk.

Λ10= 4.93...→<3 bits Λ30= 5.37...→<3 bits Λ100= 5.87...→<3 bits Λ1000= 6.80...→<3 bits

It’s faster to compute fn instead ofpn

x

−1 −1/2 1/2 1

−5×10−3 5×10−3

Chebyshev truncation of degree4 Best approximant of degree4

error of the approximation ofexp

(15)

5 / 36

Chebyshev Truncations are Near-Best

Let f be continuous on [−1,1] with degree n Chebyshev truncation fn and best approximant pn (the polynomial of degree at most n that minimizes kf −pk= sup−1≤x≤1|f(x)−p(x)|),n≥1. Then

kf −fnk

4 + 4

π2log(n+ 1)

| {z }

Λn

kf−pnk.

Λ10= 4.93...→<3 bits Λ30= 5.37...→<3 bits Λ100= 5.87...→<3 bits Λ1000= 6.80...→<3 bits It’s faster to compute fn

instead ofpn

x

−1 −1/2 1/2 1

−5×10−3 5×10−3

Chebyshev truncation of degree4 Best approximant of degree4

error of the approximation ofexp

(16)

6 / 36

Contributions

Fastpolynomial conversion, Monomial bases7→Chebyshev basis (with Alin Bostan, Chap. 3)

When a Chebyshev series is solution of a linear differential equation, its coefficients are solutions of a linear recurrence equation

Fast algorithm to compute this recurrence using fractions of recurrence operators (with Bruno Salvy,ISSAC’09)

Use of this recurrence relation to compute the coefficients numerically (with Mioara Jolde¸s and Marc Mezzarobba, Chap. 6 and 7)

Implementation in the DDMF (ICMS’10)

Generalization of the algorithm for the Chebyshev recurrence to the computation of recurrences for the coefficients of generalized Fourier series (with Bruno Salvy, Chap. 8)

Fast algorithm for the product of differential operators (with Alin Bostan and Joris van der Hoeven,FOCS’12)

(17)

6 / 36

Contributions

Fast polynomial conversion, Monomial bases7→Chebyshev basis (with Alin Bostan, Chap. 3)

When a Chebyshev series is solution of a linear differential equation, its coefficients are solutions of a linear recurrence equation

Fast algorithm tocompute this recurrenceusing fractions of recurrence operators (with Bruno Salvy,ISSAC’09)

Use of this recurrence relation to compute the coefficients numerically (with Mioara Jolde¸s and Marc Mezzarobba, Chap. 6 and 7)

Implementation in the DDMF (ICMS’10)

Generalization of the algorithm for the Chebyshev recurrence to the computation of recurrences for the coefficients of generalized Fourier series (with Bruno Salvy, Chap. 8)

Fast algorithm for the product of differential operators (with Alin Bostan and Joris van der Hoeven,FOCS’12)

(18)

6 / 36

Contributions

Fast polynomial conversion, Monomial bases7→Chebyshev basis (with Alin Bostan, Chap. 3)

When a Chebyshev series is solution of a linear differential equation, its coefficients are solutions of a linear recurrence equation

Fast algorithm to compute this recurrence using fractions of recurrence operators (with Bruno Salvy,ISSAC’09)

Use of this recurrence relation tocompute the coefficients numerically(with Mioara Jolde¸s and Marc Mezzarobba, Chap. 6 and 7)

Implementation in theDDMF(ICMS’10)

Generalization of the algorithm for the Chebyshev recurrence to the computation of recurrences for the coefficients of generalized Fourier series (with Bruno Salvy, Chap. 8)

Fast algorithm for the product of differential operators (with Alin Bostan and Joris van der Hoeven,FOCS’12)

(19)

6 / 36

Contributions

Fast polynomial conversion, Monomial bases7→Chebyshev basis (with Alin Bostan, Chap. 3)

When a Chebyshev series is solution of a linear differential equation, its coefficients are solutions of a linear recurrence equation

Fast algorithm to compute this recurrence using fractions of recurrence operators (with Bruno Salvy,ISSAC’09)

Use of this recurrence relation to compute the coefficients numerically (with Mioara Jolde¸s and Marc Mezzarobba, Chap. 6 and 7)

Implementation in the DDMF (ICMS’10)

Generalization of the algorithm for the Chebyshev recurrence to the computation of recurrences for the coefficients of generalized Fourier series (with Bruno Salvy, Chap. 8)

Fast algorithm for the product of differential operators (with Alin Bostan and Joris van der Hoeven,FOCS’12)

(20)

6 / 36

Contributions

Fast polynomial conversion, Monomial bases7→Chebyshev basis (with Alin Bostan, Chap. 3)

When a Chebyshev series is solution of a linear differential equation, its coefficients are solutions of a linear recurrence equation

Fast algorithm to compute this recurrence using fractions of recurrence operators (with Bruno Salvy,ISSAC’09)

Use of this recurrence relation to compute the coefficients numerically (with Mioara Jolde¸s and Marc Mezzarobba, Chap. 6 and 7)

Implementation in the DDMF (ICMS’10)

Generalization of the algorithm for the Chebyshev recurrence to the computation of recurrences for the coefficients ofgeneralized Fourier series (with Bruno Salvy, Chap. 8)

Fast algorithm for theproduct of differential operators(with Alin Bostan and Joris van der Hoeven,FOCS’12)

(21)

6 / 36

Contributions

Fast polynomial conversion, Monomial bases7→Chebyshev basis (with Alin Bostan, Chap. 3)

When a Chebyshev series is solution of a linear differential equation, its coefficients are solutions of a linear recurrence equation

Fast algorithm to compute this recurrence using fractions of recurrence operators (with Bruno Salvy,ISSAC’09)

Use of this recurrence relation to compute the coefficients numerically (with Mioara Jolde¸s and Marc Mezzarobba, Chap. 6 and 7)

Implementation in the DDMF (ICMS’10)

Generalization of the algorithm for the Chebyshev recurrence to the computation of recurrences for the coefficients of generalized Fourier series (with Bruno Salvy, Chap. 8)

Fast algorithm for the product of differential operators (with Alin Bostan and Joris van der Hoeven, FOCS’12)

(22)

7 / 36

Outline

1 DDMF

2 Chebyshev Recurrence

3 Computation of the Chebyshev Coefficients by Hadamard Product

4 Numerical Evaluation using the Recurrence Relation

5 Generalized Fourier Series

6 Quasi-Optimal Multiplication of Linear Differential Operators

(23)

8 / 36

I DDMF

(24)

9 / 36

DDMF

The Special Function erf(x) 08/07/12 17:50

Page 1 of 2 http://ddmf.msr-inria.inria.fr/1.7.2/ddmf?service=SpecialFunction&…ath&mac=Hv49g3JXhLJiYMAimJ3rVrlif0U&sf_id=sf_erf&parameters=q64FAA

The Special Function

1. Differential equation

The function satisfies the differential equation

with initial values , .

2. Plot

3. Numerical Evaluation 4. Symmetry

5. Taylor Expansion at 0

6. Local Expansions at Singularities and at Infinity 7. Hypergeometric Representation

8. Chebyshev Expansion over

Chebyshev expansion:

First terms and polynomial approximation:

order =

The coefficients in the satisfy the

recurrence

erf ( ) x

erf( )x

2 y y

!d dx ( )x

"

x+ d2

dx2 ( ) = 0x y( ) = 00 (y0) 0( ) = 2p1!

[ ! 1; 1 ]

erf( ) =x X1 :

n=0

2 p!(2n+ 1)n!

4!n(!1)n1 1F(1=2+n;2n+ 2;!1)T2 +1n ( )x

erf( ) = 0x :904347T1( )x !0:0661130T3( ) + 0x :00472936T5( ) +x : : : erf( )x "1:12633280x!0:35903920x3+ 0:07566976x5:

cn erf( ) =x P1 T(x)

n=0cn n

n :

( 2+ 3n)c n( ) + 2( n3+ 12n2+ 24n+ 1 )6 c n( + 2) +(!n2!5n!4)c n( + 4) = 0

Home Glossary

[-]

[+]

[+]

[+]

[+]

[+]

[+]

[-]

6 Submit

link rendering

Chebyshev expansion

ICMS 2010, B., Chyzak, Darasse, Gerhold, Mezzarobba and Salvy (http://ddmf.msr-inria.inria.fr).

(25)

9 / 36

DDMF

08/07/12 17:50 The Special Function erf(x)

Page 1 of 2 http://ddmf.msr-inria.inria.fr/1.7.2/ddmf?service=SpecialFunction&…ath&mac=Hv49g3JXhLJiYMAimJ3rVrlif0U&sf_id=sf_erf&parameters=q64FAA

The Special Function

1. Differential equation

The function satisfies the differential equation

with initial values , .

2. Plot

3. Numerical Evaluation 4. Symmetry

5. Taylor Expansion at 0

6. Local Expansions at Singularities and at Infinity 7. Hypergeometric Representation

8. Chebyshev Expansion over

Chebyshev expansion:

First terms and polynomial approximation:

order =

The coefficients in the satisfy the

recurrence

erf ( ) x

erf( )x

2 y y

!d dx ( )x

"

x+ d2

dx2 ( ) = 0x y( ) = 00 (y0) 0( ) = 2p1!

[ ! 1; 1 ]

erf( ) =x X1 :

n=0

2 p!(2n+ 1)n!

4!n(!1)n1 1F(1=2+n;2n+ 2;!1)T2 +1n ( )x

erf( ) = 0x :904347T1( )x !0:0661130T3( ) + 0x :00472936T5( ) +: : :x erf( )x "1:12633280x!0:35903920x3+ 0:07566976x5:

cn erf( ) =x P1 T(x)

n=0cn n

n :

( 2+ 3n)c n( ) + 2( n3+ 12n2+ 24n+ 1 )6 c n( + 2) +(!n2!5n!4)c n( + 4) = 0

Home Glossary

[-]

[+]

[+]

[+]

[+]

[+]

[+]

[-]

6 Submit

link rendering

Chebyshev expansion

ICMS 2010, B., Chyzak, Darasse, Gerhold, Mezzarobba and Salvy (http://ddmf.msr-inria.inria.fr).

(26)

10 / 36

II Chebyshev Recurrence

(27)

11 / 36

Chebyshev Recurrence

Theorem (Paszkowski 1975)

IfP

cnTn(x)is solution of a linear differential equation with polynomial coefficients, then the coefficientscn are solution of a linear recurrence with polynomial coefficients.

(28)

9 / 36

DDMF

08/07/12 17:50 The Special Function erf(x)

Page 1 of 2 http://ddmf.msr-inria.inria.fr/1.7.2/ddmf?service=SpecialFunction&…ath&mac=Hv49g3JXhLJiYMAimJ3rVrlif0U&sf_id=sf_erf&parameters=q64FAA

The Special Function

1. Differential equation

The function satisfies the differential equation

with initial values , .

2. Plot

3. Numerical Evaluation 4. Symmetry

5. Taylor Expansion at 0

6. Local Expansions at Singularities and at Infinity 7. Hypergeometric Representation

8. Chebyshev Expansion over

Chebyshev expansion:

First terms and polynomial approximation:

order =

The coefficients in the satisfy the

recurrence

erf ( ) x

erf( )x

2 y y

!d dx ( )x

"

x+ d2

dx2 ( ) = 0x y( ) = 00 (y0) 0( ) = 2p1!

[ ! 1; 1 ]

erf( ) =x X1 :

n=0

2 p!(2n+ 1)n!

4!n(!1)n1 1F(1=2+n;2n+ 2;!1)T2 +1n ( )x

erf( ) = 0x :904347T1( )x !0:0661130T3( ) + 0x :00472936T5( ) +: : :x erf( )x "1:12633280x!0:35903920x3+ 0:07566976x5:

cn erf( ) =x P1 T(x)

n=0cn n

n :

( 2+ 3n)c n( ) + 2( n3+ 12n2+ 24n+ 1 )6 c n( + 2) +(!n2!5n!4)c n( + 4) = 0

Home Glossary

[-]

[+]

[+]

[+]

[+]

[+]

[+]

[-]

6 Submit

link rendering

Chebyshev expansion

ICMS 2010, B., Chyzak, Darasse, Gerhold, Mezzarobba and Salvy (http://ddmf.msr-inria.inria.fr).

(29)

12 / 36

Morphisms of Rings of Operators (S · u

n

= u

n+1

)

Taylor series (f := P unxn) xf=X

unxn+1=X

un−1xn, f0=X

nunxn−1=X

(n+ 1)un+1xn

(30)

12 / 36

Morphisms of Rings of Operators (S · u

n

= u

n+1

)

Taylor series (f := P unxn) xf=X

unxn+1=X

un−1xn, f0=X

nunxn−1=X

(n+ 1)un+1xn

x7→X :=S−1,

d

dx7→D:= (n+ 1)S.

(31)

12 / 36

Morphisms of Rings of Operators (S · u

n

= u

n+1

)

Taylor series (f := P unxn) xf=X

unxn+1=X

un−1xn, f0=X

nunxn−1=X

(n+ 1)un+1xn

x7→X :=S−1,

d

dx7→D:= (n+ 1)S.

(4 +x2)

d

dx 2

+ 2xdxd

7→(4+S−2)(n+1)(n+2)S2+2S−1(n+ 1)S

= (n+ 1) 4(n+ 2)S2+n 4(n+ 2)un+2+nun= 0

(32)

12 / 36

Morphisms of Rings of Operators (S · u

n

= u

n+1

)

Monomial Basisxn=Mn(x) xMn(x) =Mn+1(x), Mn0(x) =nMn−1(x).

Chebyshev series

xTn(x) =1/2 (Tn+1(x) +Tn−1(x)) Tn0(x) =n(Tn−1(x)−Tn+1(x))

2(1−x2) . x7→X :=S−1,

d

dx7→D:= (n+ 1)S.

x7→X := S+S−1

2 ,

d

dx7→D:= (n+ 1)S−(n−1)S−1

2(1−X2) = 2n S−1−S.

(4 +x2)

d

dx 2

+ 2xd dx 7→(4+S−2)(n+1)(n+2)S2+2S−1(n+1)S

= (n+ 1) 4(n+ 2)S2+n 4(n+ 2)un+2+nun= 0

(n−1)(n+ 1) (n+ 2)S2+ 18n+ (n−2)S−2 ((n−1)S2−2n+ (n+ 1)S−2) ,

(n+ 2)cn+2+ 18ncn+ (n−2)cn−2= 0.

(33)

12 / 36

Morphisms of Rings of Operators (S · u

n

= u

n+1

)

Monomial Basisxn=Mn(x) xMn(x) =Mn+1(x), Mn0(x) =nMn−1(x).

Chebyshev series

xTn(x) =1/2 (Tn+1(x) +Tn−1(x)) Tn0(x) =n(Tn−1(x)−Tn+1(x))

2(1−x2) . x7→X :=S−1,

d

dx7→D:= (n+ 1)S.

x7→X := S+S2−1, d

dx7→D:= (n+ 1)S−(n−1)S−1

2(1−X2) = 2n S−1−S.

(4 +x2)

d

dx 2

+ 2xd dx 7→(4+S−2)(n+1)(n+2)S2+2S−1(n+1)S

= (n+ 1) 4(n+ 2)S2+n 4(n+ 2)un+2+nun= 0

(n−1)(n+ 1) (n+ 2)S2+ 18n+ (n−2)S−2 ((n−1)S2−2n+ (n+ 1)S−2) ,

(n+ 2)cn+2+ 18ncn+ (n−2)cn−2= 0.

(34)

12 / 36

Morphisms of Rings of Operators (S · u

n

= u

n+1

)

Monomial Basisxn=Mn(x) xMn(x) =Mn+1(x), Mn0(x) =nMn−1(x).

Chebyshev series

xTn(x) =1/2 (Tn+1(x) +Tn−1(x)) Tn0(x) =n(Tn−12(1−x(x)−T2n+1) (x)).

x7→X:=S−1,

d

dx7→D:= (n+ 1)S.

x7→X:= S+S−1

2 ,

d

dx7→D:=(n+1)S−(n−1)S−1

2(1−X2) = 2n S−1−S.

(4 +x2)

d

dx 2

+ 2xd dx 7→(4+S−2)(n+1)(n+2)S2+2S−1(n+1)S

= (n+ 1) 4(n+ 2)S2+n 4(n+ 2)un+2+nun= 0

(n−1)(n+ 1) (n+ 2)S2+ 18n+ (n−2)S−2 ((n−1)S2−2n+ (n+ 1)S−2) ,

(n+ 2)cn+2+ 18ncn+ (n−2)cn−2= 0.

(35)

12 / 36

Morphisms of Rings of Operators (S · u

n

= u

n+1

)

Monomial Basisxn=Mn(x) xMn(x) =Mn+1(x), Mn0(x) =nMn−1(x).

Chebyshev series

xTn(x) =1/2 (Tn+1(x) +Tn−1(x)) Tn0(x) =n(Tn−1(x)−Tn+1(x))

2(1−x2) . x7→X :=S−1,

d

dx7→D:= (n+ 1)S.

x7→X := S+S−1

2 ,

d

dx7→D:= (n+ 1)S−(n−1)S−1

2(1−X2) = 2n S−1−S.

(4 +x2) d

dx

2

+ 2xdxd

7→(4+S−2)(n+1)(n+2)S2+2S−1(n+1)S

= (n+ 1) 4(n+ 2)S2+n 4(n+ 2)un+2+nun= 0

(n−1)(n+1)((n+2)S2+18n+(n−2)S−2)

((n−1)S2−2n+(n+1)S−2) , (n+ 2)cn+2+ 18ncn+ (n−2)cn−2= 0.

(36)

12 / 36

Morphisms of Rings of Operators (S · u

n

= u

n+1

)

Monomial Basisxn=Mn(x) xMn(x) =Mn+1(x), Mn0(x) =nMn−1(x).

Chebyshev series

xTn(x) =1/2 (Tn+1(x) +Tn−1(x)) Tn0(x) =n(Tn−1(x)−Tn+1(x))

2(1−x2) . x7→X :=S−1,

d

dx7→D:= (n+ 1)S.

x7→X := S+S−1

2 ,

d

dx7→D:= (n+ 1)S−(n−1)S−1

2(1−X2) = 2n S−1−S.

(4 +x2)

d

dx 2

+ 2xd dx 7→(4+S−2)(n+1)(n+2)S2+2S−1(n+1)S

= (n+ 1) 4(n+ 2)S2+n 4(n+ 2)un+2+nun= 0

(n−1)(n+ 1) (n+ 2)S2+ 18n+ (n−2)S−2 ((n−1)S2−2n+ (n+ 1)S−2) ,

(n+ 2)cn+2+ 18ncn+ (n−2)cn−2= 0.

(37)

13 / 36

Morphisms of Rings of Operators 2

Definition

The Chebyshev morphism ϕis defined by:

ϕ(x) = 1

2 S+S−1 andϕ

d dx

= 2n

−S+S−1.

Theorem (BenoitSalvy2009)

f∈ Ck,L=P pi d

dx

i

a linear differential operator of orderk such thatL·f= 0.

Suppose that either of the following holds:

(i).

Z 1

−1

f(k)(x)

√1−x2dxis convergent;

(ii).

Z 1

−1

(1−x2)kf(k)(x)

√1−x2 dxis convergent and(1−x2)i|pi,i= 0, . . . ,k.

Then, the Chebyshev coefficients off are cancelled by anynumerator ofϕ(L).

(38)

14 / 36

New and Fast Algorithm

Theorem

If the order is at mostk and the degrees ofpi are at mostk,

Paszkowski (1975) and Lewanowicz (1976): O(k4)arithmetic operations.

New: O(kω)arithmetic operations.

ω is a feasible exponent for matrix multiplication (2≤ω≤3)

Ideafor the new algorithm: Compute the numerator of a fraction of recurrence operators using a divide-and-conquer method.

[BenoitSalvy, 2012] A.B., Bruno Salvy,

Chebyshev Expansions for Solutions of Linear Differential Equations, ISSAC2009.

(39)

14 / 36

New and Fast Algorithm

Theorem

If the order is at mostk and the degrees ofpi are at mostk,

Paszkowski (1975) and Lewanowicz (1976): O(k4)arithmetic operations.

New: O(kω)arithmetic operations.

ω is a feasible exponent for matrix multiplication (2≤ω≤3)

Ideafor the new algorithm: Compute the numerator of a fraction of recurrence operators using a divide-and-conquer method.

[BenoitSalvy, 2012] A.B., Bruno Salvy,

Chebyshev Expansions for Solutions of Linear Differential Equations, ISSAC2009.

(40)

15 / 36

III Computation of the Chebyshev Coefficients

by Hadamard Product

(41)

16 / 36

Hadamard Product for Chebyshev Expansions

Hyp: f is analytic in the closed unit disk. Then, there existsun andcn such that f(x) =X

n∈N

unxn =X

n∈N

cnTn(x).

Inner product withTn(x) cn(t) = 2

π Z 1

−1

P

k∈NukxktkTn(x)

√1−x2 dx= 2 π

X

k∈N

uktk Z 1

−1

xkTn(x)

√1−x2dx

| {z }

independant off

=X

k∈N

ukgn,ktk.

gn(t) =X

k∈N

gn,ktk=X

k∈N

21−2k−n

2k+n k+n

t2k+n= 2tn (1 +√

1−t2)n√ 1−t2. cn(t) =f(t)gn(t)

extension of Thacher 1964

(42)

9 / 36

DDMF

08/07/12 17:50 The Special Function erf(x)

Page 1 of 2 http://ddmf.msr-inria.inria.fr/1.7.2/ddmf?service=SpecialFunction&…ath&mac=Hv49g3JXhLJiYMAimJ3rVrlif0U&sf_id=sf_erf&parameters=q64FAA

The Special Function

1. Differential equation

The function satisfies the differential equation

with initial values , .

2. Plot

3. Numerical Evaluation 4. Symmetry

5. Taylor Expansion at 0

6. Local Expansions at Singularities and at Infinity 7. Hypergeometric Representation

8. Chebyshev Expansion over

Chebyshev expansion:

First terms and polynomial approximation:

order =

The coefficients in the satisfy the

recurrence

erf ( ) x

erf( )x

2 y y

!d dx ( )x

"

x+ d2

dx2 ( ) = 0x y( ) = 00 (y0) 0( ) = 2p1!

[ ! 1; 1 ]

erf( ) =x X1 :

n=0

2 p!(2n+ 1)n!

4!n(!1)n1 1F(1=2+n;2n+ 2;!1)T2 +1n ( )x

erf( ) = 0x :904347T1( )x !0:0661130T3( ) + 0x :00472936T5( ) +: : :x erf( )x "1:12633280x!0:35903920x3+ 0:07566976x5:

cn erf( ) =x P1 T(x)

n=0cn n

n :

( 2+ 3n)c n( ) + 2( n3+ 12n2+ 24n+ 1 )6 c n( + 2) +(!n2!5n!4)c n( + 4) = 0

Home Glossary

[-]

[+]

[+]

[+]

[+]

[+]

[+]

[-]

6 Submit

link rendering

Chebyshev expansion

ICMS 2010, B., Chyzak, Darasse, Gerhold, Mezzarobba and Salvy (http://ddmf.msr-inria.inria.fr).

(43)

16 / 36

Hadamard Product for Chebyshev Expansions

Hyp: f is analytic in the closed unit disk. Then, there existsun andcn such that f(xt) =X

n∈N

unxntn =X

n∈N

cn(t)Tn(x).

Inner product withTn(x) cn(t) = 2

π Z 1

−1

P

k∈NukxktkTn(x)

√1−x2 dx= 2 π

X

k∈N

uktk Z 1

−1

xkTn(x)

√1−x2dx

| {z }

independant off

=X

k∈N

ukgn,ktk.

gn(t) =X

k∈N

gn,ktk=X

k∈N

21−2k−n

2k+n k+n

t2k+n= 2tn (1 +√

1−t2)n√ 1−t2. cn(t) =f(t)gn(t)

extension of Thacher 1964

(44)

16 / 36

Hadamard Product for Chebyshev Expansions

Hyp: f is analytic in the closed unit disk. Then, there existsun andcn such that f(xt) =X

n∈N

unxntn =X

n∈N

cn(t)Tn(x).

Inner product withTn(x) cn(t) = 2

π Z 1

−1

P

k∈NukxktkTn(x)

√1−x2 dx= 2 π

X

k∈N

uktk Z 1

−1

xkTn(x)

√1−x2dx

| {z }

independant off

=X

k∈N

ukgn,ktk.

gn(t) =X

k∈N

gn,ktk=X

k∈N

21−2k−n

2k+n k+n

t2k+n= 2tn (1 +√

1−t2)n√ 1−t2. cn(t) =f(t)gn(t)

extension of Thacher 1964

(45)

16 / 36

Hadamard Product for Chebyshev Expansions

Hyp: f is analytic in the closed unit disk. Then, there existsun andcn such that f(xt) =X

n∈N

unxntn =X

n∈N

cn(t)Tn(x).

Inner product withTn(x) cn(t) = 2

π Z 1

−1

P

k∈NukxktkTn(x)

√1−x2 dx= 2 π

X

k∈N

uktk Z 1

−1

xkTn(x)

√1−x2dx

| {z }

independant off

=X

k∈N

ukgn,ktk.

gn(t) =X

k∈N

gn,ktk=X

k∈N

21−2k−n

2k+n k+n

t2k+n = 2tn (1 +√

1−t2)n√ 1−t2.

cn(t) =f(t)gn(t)

extension of Thacher 1964

(46)

16 / 36

Hadamard Product for Chebyshev Expansions

Hyp: f is analytic in the closed unit disk. Then, there existsun andcn such that f(xt) =X

n∈N

unxntn =X

n∈N

cn(t)Tn(x).

Inner product withTn(x) cn(t) = 2

π Z 1

−1

P

k∈NukxktkTn(x)

√1−x2 dx= 2 π

X

k∈N

uktk Z 1

−1

xkTn(x)

√1−x2dx

| {z }

independant off

=X

k∈N

ukgn,ktk.

gn(t) =X

k∈N

gn,ktk=X

k∈N

21−2k−n

2k+n k+n

t2k+n = 2tn (1 +√

1−t2)n√ 1−t2. cn(t) =f(t)gn(t)

extension of Thacher 1964

(47)

17 / 36

Application to the Closed Form of Coefficients

Idea: Iff =Punxn is m-hypergeometric, i.e. un+m/un is rational, then fgk

is 2m-hypergeometric.

Corollary(Luke, 1969):

pFq

a1;. . .;ap

b1;. . .;bq

xt

=X

k∈N

ck(t)Tk(x),

ck(t) = 2 2k

(a1)k. . .(ap)k

(b1)k. . .(bq)k tk k!2pF2q+1

a1+k

2 ;a1+k+12 ;. . .;ap2+k;ap+k+12

b1+k

2 ;b1+k+12 ;. . .;bq+k2 ;bq+k+12 ;k+ 1

t2 4q−p+1

! .

(48)

17 / 36

Application to the Closed Form of Coefficients

Idea: Iff =Punxn is m-hypergeometric, i.e. un+m/un is rational, then fgk

is 2m-hypergeometric.

Corollary(Luke, 1969):

pFq

a1;. . .;ap

b1;. . .;bq

xt

=X

k∈N

ck(t)Tk(x),

ck(t) = 2 2k

(a1)k. . .(ap)k

(b1)k. . .(bq)k tk k!2pF2q+1

a1+k

2 ;a1+k+12 ;. . .;ap2+k;ap+k+12

b1+k

2 ;b1+k+12 ;. . .;bq+k2 ;bq+k+12 ;k+ 1

t2 4q−p+1

! .

(49)

18 / 36

Applications to Special Functions

Function Chebyshev expansion

exp(xt) P

n=0

02 In(t)Tn(x)

sin(xt) 2P

n∈N(−1)nJ2n+1(t)T2n+1(x)

erf(xt) P

n∈N

2 π

(−1)n 4n

t2n+1 (2n+1)n! 1F1

n+12 2n+2

−t2

T2n+1(x)

Si(xt) P

n∈N

4−n(−1)n (2n+1)!(2n+1) 1F1

n+1 2

2n+2,n+32

14t2

T2n+1(x)

Ai(xt) P

n∈N 0 1

81nn!31442/3Γ(n+4/3) 21 F5 1/2n+4/3;1/2n+5/6

4/3;5/3;n+1;n+4/3;n+5/3

t6 1296

+3

3 3

2 Γ(n+2/3) 2F5

1/2n+2/3;1/2n+1/6 1/3;2/3;n+1;n+2/3;n+1/3

t6 1296

! T3n(x) +· · ·

(50)

18 / 36

Applications to Special Functions

Function Chebyshev expansion

exp(xt) P

n=0

02 In(t)Tn(x)

sin(xt) 2P

n∈N(−1)nJ2n+1(t)T2n+1(x)

erf(xt) P

n∈N

2 π

(−1)n 4n

t2n+1 (2n+1)n! 1F1

n+12 2n+2

−t2

T2n+1(x)

Si(xt) P

n∈N

4−n(−1)n (2n+1)!(2n+1) 1F1

n+1 2

2n+2,n+32

14t2

T2n+1(x)

Ai(xt) P

n∈N 0 1

81nn!31442/3Γ(n+4/3) 21 F5 1/2n+4/3;1/2n+5/6

4/3;5/3;n+1;n+4/3;n+5/3

t6 1296

+3

3 3

2 Γ(n+2/3) 2F5

1/2n+2/3;1/2n+1/6 1/3;2/3;n+1;n+2/3;n+1/3

t6 1296

! T3n(x) +· · ·

(51)

19 / 36

Application to Numerical Computation

f(x) =X

n∈N

cn(1)Tn(x), with cn(t) =f(t) 2tn (1 +√

1−t2)n√ 1−t2

cn(t) =P

k=0cn,ktk is solution of a linear differential equation, thencn,k are solutions of a linear recurrence

Application: Algorithm for the computation ofcn(1)inO(log(˜ −1) +n)bit operations

INPUT:n,

OUTPUT:ecn(1)such that |ecn(1)−cn(1)|<

Computation of the recurrence satisfied bycn,k, plus initial conditions

(O(n)˜ ops)

(Using binary splitting)

Use of the Mezzarobba-Salvy algorithm to computeN such that|P

n=N+1cn,k|<

(O(log(−1))ops)

Computation ofPN

k=0cn,k using the recurrence

(O(N˜ ) = ˜O(log(−1))ops)

(Using binary splitting)

To compute` coefficients, the complexity becomesO(`˜ log(−1)).

Références

Documents relatifs

It was shown that the state estimation problem can be solved using a convex relaxation based on semi-definite programming.. In the present paper, we propose a fast algorithm for

In this section, we briefly summarize the results of Ariki which give an interpretation of the decomposition matrix in terms of the canonical basis of a certain U q (c sl e

In this paper we describe how the half-gcd algorithm can be adapted in order to speed up the sequential stage of Copper- smith’s block Wiedemann algorithm for solving large

Using our results on linear recurrences, this remark yields an algorithm to compute the Hasse-Witt matrix whose complexity now grows like √ p, up to logarithmic factors, instead of

This transformation provided the 9 condensed identity coef- ficients for any pair of individuals, but the 15 detailed identity coefficients can only be calculated using Karigl’s

In Section 3, we detail a fast algorithm for the computation of affine factors , which are polynomials having the same roots as the shifts but which can be computed more

A learning environment which allows every learner to enhance his or her thinking skills in a unique and personally meaningful way, and most importantly it

Appliquée aux données économiques de trois mines d’or représentatives, cette base de données permet de calculer le TEMI à partir du mode de calcul, du taux, des assiettes