12.07.2015 Views

1.4. Rung˙es ir Kuto metodas - techmat.vgtu.lt

1.4. Rung˙es ir Kuto metodas - techmat.vgtu.lt

1.4. Rung˙es ir Kuto metodas - techmat.vgtu.lt

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>1.4.</strong> RUNGĖS IR KUTO METODAS 25endfor i = 1 to MK j [i] = f i (t + τ n+1 a j , Y N)end forend for4. Vektoriaus Y n+1 skaičiavimasfor i = 1 to MY N[i] = Y S[i]for j = 1 to mY N[i] = Y N[i] + τ n+1 σ j K j (i)end forend fort = t + τ n+1n = n + 1end while<strong>1.4.</strong>3. Rungės <strong>ir</strong> <strong>Kuto</strong> metodo koeficientu˛radimasAlgoritmo koeficientai a i , b ij , σ i parenkami taip, kad metodo aproksimacijostikslumas būtų didžiausias. Išnagrinėsime dvipakopį Rungės <strong>ir</strong> <strong>Kuto</strong> metoda. ˛ Iššio pavyzdžio bus aišku, kaip koeficientai randami <strong>ir</strong> bendruoju atveju.Imsime vienos diferencialinės lygties atvejį, kai M = 1. Lygčių sistemu˛analizėatliekama visiškai taip pat, be to, tik Rungės <strong>ir</strong> <strong>Kuto</strong> metodams, kuriu˛tikslumoeilė didesnė už ketv<strong>ir</strong>taj ˛ a, ˛ ats<strong>ir</strong>anda papildomu˛lygčiu, ˛ kurias turi tenkinti metodokoeficientai. Kadangi paprastai randame ne konkretu˛vienintelį nurodyto tikslumoRungės <strong>ir</strong> <strong>Kuto</strong> metoda, ˛ o metodu˛šeima, ˛ priklausančia˛nuo keliu˛laisvu˛parametru,˛tai dažniausiai pavyksta patenkinti <strong>ir</strong> šias papildomas lygtis.Dvipakopio Rungės <strong>ir</strong> <strong>Kuto</strong> metodo formulėse yra keturi laisvi parametrai a 2 ,b 21 , σ 1 , σ 2 :K 1 = f(t n , y n ),K 2 = f(t n + a 2 τ, y n + b 21 τK 1 ),y n+1 = y n + τ(σ 1 K 1 + σ 2 K 2 ) .Perrašykime paskutiniaj ˛ a˛lygybę standartine forma:y n+1 − y n= σ 1 f(t n , y n ) + σ 2 f ( t n + a 2 τ, y n + b 21 τf(t n , y n ) ) .τ

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

Saved successfully!

Ooh no, something went wrong!