Euler works - Runge-Rutta not

Euler works - Runge-Rutta not - Why? - Messages

#1 Posted: 12/31/2023 12:02:28 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Help please
Rocket-s-Euler.sm (87 KiB) downloaded 57 time(s).
#2 Posted: 12/31/2023 4:24:42 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

EK45 was Deified by Mathematica
Working code included.
Jean

Rocket-s-Euler.sm (122 KiB) downloaded 62 time(s).
#3 Posted: 12/31/2023 2:49:44 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Thanks.
I have corrected myself
Rocket-s-Euler-RK.sm (87 KiB) downloaded 51 time(s).
New question
Why this not works
Rocket-s-Euler-RK-full.sm (88 KiB) downloaded 51 time(s).

#4 Posted: 12/31/2023 4:44:31 PM
StvMath

StvMath

35 likes in 56 posts.

Group: User

Your RK does work! Your Euler doesn't because you have defined the acceleration term to have two input variables, but only call it with one in the Euler routine!

Rocket-s-Euler-RK-full.sm (89 KiB) downloaded 61 time(s).
1 users liked this post
Valery Ochkov 12/31/2023 5:02:00 PM
#5 Posted: 12/31/2023 5:02:35 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Wrote

Your RK does work! Your Euler doesn't because you have defined the acceleration term to have two input variables, but only call it with one in the Euler routine!



Tanks!

Send me please the corrected file.
#6 Posted: 12/31/2023 5:22:06 PM
StvMath

StvMath

35 likes in 56 posts.

Group: User

Wrote

Wrote

Your RK does work! Your Euler doesn't because you have defined the acceleration term to have two input variables, but only call it with one in the Euler routine!



Tanks!

Send me please the corrected file.




I've now added the corrected file to my earlier reply.
1 users liked this post
Valery Ochkov 12/31/2023 5:43:00 PM
  • New Posts New Posts
  • No New Posts No New Posts