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 twaddex  
#1 Posted : 16 September 2020 22:25:39(UTC)
twaddex

Rank: Newbie

Groups: Registered
Joined: 16/09/2020(UTC)
Posts: 1
Germany

Hello guys,

I want to create a while loop which compare two Results and if the difference is too high(more than 0,1), the second result should turn into the first and the second should be calculated again.

But I just create an endless loop or a loop which is calculated just one time. Can someone give me some recommendation?

Thanks a lot.

twaddex


iteration.sm (30kb) downloaded 13 time(s).

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

Offline Jean Giraud  
#2 Posted : 16 September 2020 22:54:35(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Get inspired from these three "While/Iterate".
Cheers ... Jean

Solve [Dichotomy_Newton_Secant].sm (36kb) downloaded 16 time(s).
Offline Jean Giraud  
#3 Posted : 17 September 2020 01:54:17(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
ϑ'o(ϑGS)=f(x)
Given f(x) some value, you can solve for (x).
Before solving => always plot.
do=0.4591 is way below the flat region.

iteration.sm (32kb) downloaded 9 time(s).
Offline Jean Giraud  
#4 Posted : 17 September 2020 03:20:59(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
... suite,
The doctored solved from before can be viewed globally
via inversing. Your function is too complicated, it will have no inverse.
It can be inversed recursively and plotted data points or spline smooth.
Such a monster big function w/o abstract ... what do you think ?
Offline Jean Giraud  
#5 Posted : 17 September 2020 14:52:25(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
... recursive inverser of difficult function. Any help ?

Solve Inverse [Seeded Scanner MODEL].sm (10kb) downloaded 13 time(s).
Users browsing this topic
Similar Topics
Iteration of values to satisfy an inequality (Questions)
by Orlando 31/05/2023 18:21:54(UTC)
extract a row from an iteration (Questions)
by Orlando 17/05/2023 17:23:59(UTC)
Mcad2Smath Iteration&recursion (Questions)
by Adrien Welter 28/03/2021 21:05:23(UTC)
For Loop - first iteration(s) not correct? (Questions)
by justhumm 26/01/2019 22:37:00(UTC)
Non iterative & Signum-based iteration methods (Samples)
by Davide Carpi 16/05/2016 13:51:35(UTC)
Difficult iteration equation in SMath (Questions)
by Gerjan 12/04/2012 13:04:41(UTC)
Iteration: Unexpected Results (Questions)
by .plaid 28/05/2011 20:23:19(UTC)
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.