Euler method without for

Euler method without for - With vectors - Messaggi

#1 Pubblicato: 24/12/2023 13:26:58
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: 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,07 KiB) scaricato 1537 volta(e).
#2 Pubblicato: 24/12/2023 19:07:27
StvMath

StvMath

44 apprezzamenti e 1 disapprezzamenti in 76 post.

Gruppo: User

Like this:

Euler.png

Rocket-s-Euler-vectors_b.sm (31,29 KiB) scaricato 1497 volta(e).

Correction: The term yb*i should just be yb.
1 utenti hanno apprezzato questo post
Valery Ochkov 24/12/2023 19:25:00
#3 Pubblicato: 24/12/2023 19:26:31
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

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

StvMath

44 apprezzamenti e 1 disapprezzamenti in 76 post.

Gruppo: User

Even simpler!

Euler.png

Rocket-s-Euler-vectors_c.sm (30,2 KiB) scaricato 1445 volta(e).

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

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 utenti hanno apprezzato questo post
Valery Ochkov 25/12/2023 16:24:00
#6 Pubblicato: 25/12/2023 00:17:24
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: 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 Pubblicato: 25/12/2023 15:48:22
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

Merry Christmas to everyone!
SCR.jpg
1 utenti hanno apprezzato questo post
Davide Carpi 27/12/2023 19:53:00
  • Nuovi post
  • Nessun nuovo post