H value in runge kutta method 2nd order

Click For Summary
SUMMARY

The H value in the second-order Runge-Kutta method is calculated using the formula h = (tn - t0) / n, where t0 is the initial time, tn is the final time, and n is the number of time steps. For example, with t0 set to 0, tn to 100, and n to 1000, the calculated H value is 0.1. This time step (H) is crucial for determining the accuracy of the numerical solution, as the error in a second-order Runge-Kutta method is proportional to h^5.

PREREQUISITES
  • Understanding of numerical methods, specifically the Runge-Kutta method.
  • Familiarity with basic calculus concepts, including time intervals.
  • Knowledge of error analysis in numerical computations.
  • Ability to perform basic arithmetic operations and algebraic manipulation.
NEXT STEPS
  • Research the derivation and applications of the Runge-Kutta method.
  • Learn about error analysis in numerical methods, focusing on order of convergence.
  • Explore higher-order Runge-Kutta methods for improved accuracy.
  • Investigate the impact of different time step sizes on numerical stability.
USEFUL FOR

Students and professionals in mathematics, engineering, and computer science who are working with numerical simulations and require a solid understanding of the Runge-Kutta method for solving ordinary differential equations.

Struggling
Messages
52
Reaction score
0
hi can anyone explain to me how to get the H value for runge kutta second method? I've searched everywhere online but i just don't 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
 
Physics news on Phys.org
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

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

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 65 ·
3
Replies
65
Views
8K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
1
Views
2K