Euler works - Runge-Rutta not

Euler works - Runge-Rutta not - Why? - 消息

#1 已发布: 2023/12/31 00:02:28
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Help please
Rocket-s-Euler.sm (87.43 KiB)已下载 1633 次。
#2 已发布: 2023/12/31 04:24:42
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

EK45 was Deified by Mathematica
Working code included.
Jean

Rocket-s-Euler.sm (122.44 KiB)已下载 1631 次。
#3 已发布: 2023/12/31 14:49:44
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Thanks.
I have corrected myself
Rocket-s-Euler-RK.sm (87.35 KiB)已下载 1537 次。
New question
Why this not works
Rocket-s-Euler-RK-full.sm (88.8 KiB)已下载 1583 次。

#4 已发布: 2023/12/31 16:44:31
StvMath

StvMath

44个赞和1个踩,共76个帖子。

组: 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)已下载 1584 次。
1位用户喜欢此帖子
Valery Ochkov 2023/12/31 17:02:00
#5 已发布: 2023/12/31 17:02:35
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: 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 已发布: 2023/12/31 17:22:06
StvMath

StvMath

44个赞和1个踩,共76个帖子。

组: 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位用户喜欢此帖子
Valery Ochkov 2023/12/31 17:43:00
  • 有新帖
  • 无新帖