Euler method without for

Euler method without for - With vectors - Messages

#1 Posted: 12/24/2023 1:26:58 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

I can’t figure out how to implement Euler method for solving ODEs without a for cycle - only with vectors.
Help please.
Rocket-s-Euler-vectors.sm (28 KiB) downloaded 37 time(s).
#2 Posted: 12/24/2023 7:07:27 PM
StvMath

StvMath

35 likes in 56 posts.

Group: User

Like this:

Euler.png

Rocket-s-Euler-vectors_b.sm (31 KiB) downloaded 31 time(s).

Correction: The term yb*i should just be yb.
1 users liked this post
Valery Ochkov 12/24/2023 7:25:00 PM
#3 Posted: 12/24/2023 7:26:31 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Thanks.
But I need without the line operator!
#4 Posted: 12/24/2023 8:22:39 PM
StvMath

StvMath

35 likes in 56 posts.

Group: User

Even simpler!

Euler.png

Rocket-s-Euler-vectors_c.sm (30 KiB) downloaded 33 time(s).

Correction: The term vb*i should just be vb
#5 Posted: 12/24/2023 11:26:20 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I can’t figure out how to implement Euler method for solving ODEs without a for cycle - only with vectors.
Help please.


Further, you would have to collect pairwise.
Euler is a poor integrator vs the yardstick rkf4 [Fehlberg].
On my test function Euler deviates up to 0.07 ... damned inaccurate !
Jean

1 users liked this post
Valery Ochkov 12/25/2023 4:24:00 PM
#6 Posted: 12/25/2023 12:17:24 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Wrote

Wrote

I can’t figure out how to implement Euler method for solving ODEs without a for cycle - only with vectors.
Help please.


Further, you would have to collect pairwise.
Euler is a poor integrator vs the yardstick rkf4 [Fehlberg].
On my test function Euler deviates up to 0.07 ... damned inaccurate !
Jean



Three-Plots.png
#7 Posted: 12/25/2023 3:48:22 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Merry Christmas to everyone!
SCR.jpg
1 users liked this post
Davide Carpi 12/27/2023 7:53:00 PM
  • New Posts New Posts
  • No New Posts No New Posts