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 : 10 February 2024 03:27:16(UTC)
OchkovVF


Rank: Advanced Member

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

Was thanked: 30 time(s) in 29 post(s)
See please the attached file. Newton.sm (24kb) downloaded 9 time(s).

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

Offline Kenny Lemens  
#2 Posted : 10 February 2024 05:38:00(UTC)
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 135
Man
United States
Location: Wisconsin

Was thanked: 64 time(s) in 41 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. ᵂᴵ
"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
thanks 1 user thanked Kenny Lemens for this useful post.
on 10/02/2024(UTC)
Offline OchkovVF  
#3 Posted : 10 February 2024 20:38:31(UTC)
OchkovVF


Rank: Advanced Member

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

Was thanked: 30 time(s) in 29 post(s)
Thanks
But see "???" in the attach
Newton-for-1-2-3-4.sm (27kb) downloaded 6 time(s).

Offline StvMath  
#4 Posted : 11 February 2024 00:38:42(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)
Here's a "while" version

while.png
Newton-for-1-2-3-4_b.sm (19kb) downloaded 4 time(s).
thanks 1 user thanked StvMath for this useful post.
on 11/02/2024(UTC)
Offline Jean Giraud  
#5 Posted : 11 February 2024 07:58:11(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)
As well, while associates with Bolean Critical region

Solve [Dichotomy_Newton_Secant] Copy.sm (53kb) downloaded 4 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 11/02/2024(UTC)
Offline OchkovVF  
#6 Posted : 11 February 2024 08:53:28(UTC)
OchkovVF


Rank: Advanced Member

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

Was thanked: 30 time(s) in 29 post(s)
Roots vs Newton
2-17.png (709kb) downloaded 9 time(s).
Offline Jean Giraud  
#7 Posted : 11 February 2024 13:55:50(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
oots vs Newton

No interest vs the codes

Offline OchkovVF  
#8 Posted : 11 February 2024 19:41:06(UTC)
OchkovVF


Rank: Advanced Member

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

Was thanked: 30 time(s) in 29 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: OchkovVF Go to Quoted Post
Roots vs Newton

No interest vs the codes



https://www.mdpi.com/2227-7390/10/19/3413
Offline Jean Giraud  
#9 Posted : 12 February 2024 03:59:12(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)
roots solves Matrix.

Worksheet33.sm (7kb) downloaded 4 time(s).
Offline mkraska  
#10 Posted : 13 February 2024 12:19:59(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,998
Germany

Was thanked: 1134 time(s) in 729 post(s)
mNewton() from the Maxima plugin is another option. It also may fail for particular initial guess values.

mNewton.sm (17kb) downloaded 4 time(s).
mNewton.png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 29/02/2024(UTC)
Users browsing this topic
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.