21.01.2015 Views

Gaussovy kvadratury Gaussian Quadrature

Gaussovy kvadratury Gaussian Quadrature

Gaussovy kvadratury Gaussian Quadrature

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

6 GAUSSOVA-LEGENDROVA KVADRATURNÍ FORMULE 37<br />

Kořeny Legendrova polynomu transformovaného na interval〈a,b〉 můžeme spočítat dle vzorce<br />

Po dosazení<br />

x 〈a,b〉 = x〈−1,1〉 +1<br />

(b−a)+a.<br />

2<br />

x 〈−1,2〉 = 3(x〈−1,1〉 +1)<br />

2<br />

−1.<br />

Hodnoty kořenů budou x 1 = − 3√ 15<br />

10<br />

+ 1 2 ,x 2 = 1 2 ,x 3 = 3√ 15<br />

10<br />

+ 1 2 .<br />

Vypočítáme koeficienty kvadraturní formule<br />

Q 〈−1,2〉 (x) = A 1<br />

(<br />

Q 〈−1,2〉 (x 2 ) = A 1<br />

(<br />

Q 〈−1,2〉 (1) = A 1 +A 2 +A 3 =<br />

)<br />

− 3√ 15<br />

10 + 1 2<br />

∫ 2<br />

−1<br />

2<br />

− 3√ 15<br />

10 2) + 1 ( ) (<br />

1<br />

2<br />

+A 2 +A 3<br />

2<br />

Vyřešením soustavy rovnic získáme A 1 = 5 6 ,A 2 = 4 3 ,A 3 = 5 6 .<br />

1dx = 3<br />

(<br />

1<br />

+A 2<br />

2 +A 3 √ )<br />

15<br />

3<br />

10 + 1 ∫ 2<br />

= xdx = 3 2 2<br />

−1<br />

Sestavíme Gaussovu-Legendrovu kvadraturu<br />

(<br />

Q 〈−1,2〉 (f) = 5 6 cos −3 √ (<br />

15<br />

+<br />

)+ 1 4 10 2 3 cos 1 2 + 5 6 cos 3 √ )<br />

15<br />

10 + 1 2<br />

Pro výpočet odhadu chyby použijeme vztah<br />

|R(f)| ≤ Ω ∫ b<br />

(x−x 1 ) 2 (x−x 2 ) 2 ...(x−x n ) 2 dx.<br />

(2n)!<br />

a<br />

Nejprve je nutné odhadnout hodnotu šesté derivace funkce f (n = 3)<br />

Víme, že<br />

f (6) (x) = −cosx.<br />

|f (6) (x)| ≤ 1.<br />

Pro chybu <strong>Gaussovy</strong>-Legendrovy <strong>kvadratury</strong> platí odhad<br />

|R(f)| ≤ 1<br />

720<br />

∫ 2<br />

−1<br />

3 √ ) 2<br />

15<br />

10 + 1 ∫ 2<br />

= x 2 dx = 3.<br />

2<br />

−1<br />

= 1,751656940.<br />

(x+ 3√ 15<br />

10 − 1 2 )2 (x− 1 2 )2 (x− 3√ 15<br />

10 − 1 2 )2 dx = 0,001084821427.

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

Saved successfully!

Ooh no, something went wrong!