Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2015-10-14 12:18:07

@PoisonSimon
Member
Registered: 2015-10-14
Posts: 3

rk4

rk4

Last edited by @PoisonSimon (2015-10-14 22:48:54)

Offline

#2 2015-10-14 22:02:34

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: rk4

Hi;

The exact solution is

When I use RK4 with a step size of .2

The error is quite small. Can you figure the percentage error for yourself?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#3 2015-10-14 22:21:18

@PoisonSimon
Member
Registered: 2015-10-14
Posts: 3

Re: rk4

I will do the error myself. Thanks alot. The RK4 was slightly easy.. The hard part is getting the analytical solution.. Thanks alot, appreciated

Offline

#4 2015-10-14 22:36:39

@PoisonSimon
Member
Registered: 2015-10-14
Posts: 3

Re: rk4

did you use Matlab for this problem? if yes, what code did you enter?

Offline

#5 2015-10-15 03:14:38

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: rk4

I have used Matlab but did not like it. I code in Mathematica.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

Board footer

Powered by FluxBB