Euler works - Runge-Rutta not

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

#1 Pubblicato: 31/12/2023 00:02:28
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

Help please
Rocket-s-Euler.sm (87,43 KiB) scaricato 1624 volta(e).
#2 Pubblicato: 31/12/2023 04:24:42
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

EK45 was Deified by Mathematica
Working code included.
Jean

Rocket-s-Euler.sm (122,44 KiB) scaricato 1619 volta(e).
#3 Pubblicato: 31/12/2023 14:49:44
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

Thanks.
I have corrected myself
Rocket-s-Euler-RK.sm (87,35 KiB) scaricato 1522 volta(e).
New question
Why this not works
Rocket-s-Euler-RK-full.sm (88,8 KiB) scaricato 1570 volta(e).

#4 Pubblicato: 31/12/2023 16:44:31
StvMath

StvMath

44 apprezzamenti e 1 disapprezzamenti in 76 post.

Gruppo: 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,85 KiB) scaricato 1570 volta(e).
1 utenti hanno apprezzato questo post
Valery Ochkov 31/12/2023 17:02:00
#5 Pubblicato: 31/12/2023 17:02:35
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: 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 Pubblicato: 31/12/2023 17:22:06
StvMath

StvMath

44 apprezzamenti e 1 disapprezzamenti in 76 post.

Gruppo: 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 utenti hanno apprezzato questo post
Valery Ochkov 31/12/2023 17:43:00
  • Nuovi post
  • Nessun nuovo post