Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline OchkovVF  
#1 Posted : 24 December 2023 19:26:58(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 348
Man
Russian Federation

Was thanked: 28 time(s) in 27 post(s)
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 (29kb) downloaded 7 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline StvMath  
#2 Posted : 25 December 2023 01:07:27(UTC)
StvMath


Rank: Advanced Member

Groups: Registered
Joined: 26/07/2022(UTC)
Posts: 37
United Kingdom
Location: UK

Was thanked: 24 time(s) in 21 post(s)
Like this:

Euler.png

Rocket-s-Euler-vectors_b.sm (32kb) downloaded 2 time(s).

Correction: The term yb*i should just be yb.

Edited by user 25 December 2023 22:36:39(UTC)  | Reason: To correct error

thanks 1 user thanked StvMath for this useful post.
on 25/12/2023(UTC)
Offline OchkovVF  
#3 Posted : 25 December 2023 01:26:31(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 348
Man
Russian Federation

Was thanked: 28 time(s) in 27 post(s)
Thanks.
But I need without the line operator!
Offline StvMath  
#4 Posted : 25 December 2023 02:22:39(UTC)
StvMath


Rank: Advanced Member

Groups: Registered
Joined: 26/07/2022(UTC)
Posts: 37
United Kingdom
Location: UK

Was thanked: 24 time(s) in 21 post(s)
Even simpler!

Euler.png

Rocket-s-Euler-vectors_c.sm (31kb) downloaded 4 time(s).

Correction: The term vb*i should just be vb

Edited by user 25 December 2023 22:36:59(UTC)  | Reason: To correct error

Offline Jean Giraud  
#5 Posted : 25 December 2023 05:26:20(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
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

thanks 1 user thanked Jean Giraud for this useful post.
on 25/12/2023(UTC)
Offline OchkovVF  
#6 Posted : 25 December 2023 06:17:24(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 348
Man
Russian Federation

Was thanked: 28 time(s) in 27 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: OchkovVF Go to Quoted Post
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

Edited by user 25 December 2023 06:25:31(UTC)  | Reason: Not specified

Offline OchkovVF  
#7 Posted : 25 December 2023 21:48:22(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 348
Man
Russian Federation

Was thanked: 28 time(s) in 27 post(s)
Merry Christmas to everyone!
SCR.jpg

Edited by user 25 December 2023 21:50:35(UTC)  | Reason: Not specified

thanks 1 user thanked OchkovVF for this useful post.
on 28/12/2023(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.