SMath Studio Forum
»
SMath Studio
»
Questions
»
How can I use not a for but a while cycle?
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 06/04/2023(UTC) Posts: 400 Was thanked: 38 time(s) in 36 post(s)
|
See please the attached file. Newton.sm (24kb) downloaded 10 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 11/01/2018(UTC) Posts: 140 Location: Wisconsin Was thanked: 67 time(s) in 42 post(s)
|
Greetings, Instead of using for(3); you can use for(4): for ▮, ▮, ▮ ▮ The four parameter 「 for(4)」 gives you the ability to loop while checking a condition. Below is the description of for( {0}, {1}, {2}, {3} ) "For loop. The function of controlled iterations. The cycle repeats {3}, while {0} satisfies the condition {1} and after each passage necessarily satisfied {2}. Repeating expressions can be set to any number of expressions." example:for i:=1, i<10, i:=i+2 k:=2*i Where 'i' starts at 1 and until i is no longer less than 10, perform operation of k:=2*i. Apply operation i:=i+2 and check if less then 10...; LOOP! May this be of Good Help; ⚜ Kenny Lemens, P.E. ᵂᴵ |
|
1 user thanked Kenny Lemens for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 06/04/2023(UTC) Posts: 400 Was thanked: 38 time(s) in 36 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 26/07/2022(UTC) Posts: 42 Location: UK Was thanked: 30 time(s) in 26 post(s)
|
|
1 user thanked StvMath for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
|
1 user thanked Jean Giraud for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 06/04/2023(UTC) Posts: 400 Was thanked: 38 time(s) in 36 post(s)
|
Roots vs Newton 2-17.png (709kb) downloaded 11 time(s).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: OchkovVF oots vs Newton No interest vs the codes
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 06/04/2023(UTC) Posts: 400 Was thanked: 38 time(s) in 36 post(s)
|
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,013 Was thanked: 1145 time(s) in 736 post(s)
|
mNewton() from the Maxima plugin is another option. It also may fail for particular initial guess values. mNewton.sm (17kb) downloaded 5 time(s). |
|
1 user thanked mkraska for this useful post.
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
How can I use not a for but a while cycle?
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.