H value in runge kutta method 2nd order

  • Thread starter Struggling
  • Start date
  • #1
52
0
hi can anyone explain to me how to get the H value for runge kutta second method? ive searched everywhere online but i just dont understand it.

if found h = tn - to/n??

i know what value of "to" is but no clue what values to put in for n and tn?

thanks
 

Answers and Replies

  • #2
Integral
Staff Emeritus
Science Advisor
Gold Member
7,201
56
If I am interpreting what you are saying correctly, h is your time step, the errors of a 2nd order RK method are on the order of h5. It looks to me like your t0 is the starting time, therefore tn is the time end point, n is the number of time steps you are taking so your h is the time interval divided by the number of time steps.

for example let:
t0=0
tn=100
n=1000

[tex] h = \frac {t_n - t_0} n = \frac {100 - 0} {1000} = .1 [/tex]
 
Last edited:

Related Threads on H value in runge kutta method 2nd order

Replies
6
Views
23K
  • Last Post
Replies
1
Views
6K
  • Last Post
Replies
3
Views
707
  • Last Post
Replies
5
Views
3K
  • Last Post
Replies
1
Views
4K
  • Last Post
Replies
6
Views
13K
  • Last Post
Replies
3
Views
3K
Replies
6
Views
7K
  • Last Post
Replies
0
Views
8K
Top