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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Prmtv  
#1 Posted : 17 August 2024 06:07:15(UTC)
Prmtv


Rank: Advanced Member

Groups: Registered
Joined: 14/07/2022(UTC)
Posts: 43
Man
Russian Federation

Hello!

Such a problem appeared. Please tell me what's the matter

00.png


00.sm (10kb) downloaded 8 time(s).


Thanks!

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

Offline mkraska  
#2 Posted : 17 August 2024 11:49:32(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,046
Germany

Was thanked: 1176 time(s) in 752 post(s)
roots() in this case needs a custom initial guess.

00_Kr.sm (14kb) downloaded 7 time(s).
2024-08-17 00_46_56-SMath Solver - [00.sm_].png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Prmtv  
#3 Posted : 18 August 2024 06:20:41(UTC)
Prmtv


Rank: Advanced Member

Groups: Registered
Joined: 14/07/2022(UTC)
Posts: 43
Man
Russian Federation

Originally Posted by: mkraska Go to Quoted Post
roots() in this case needs a custom initial guess.

00_Kr.sm (14kb) downloaded 7 time(s).
2024-08-17 00_46_56-SMath Solver - [00.sm_].png


how to choose the right one initial guess?
Offline overlord  
#4 Posted : 18 August 2024 10:15:52(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,191
Turkey

Was thanked: 544 time(s) in 366 post(s)
Originally Posted by: Prmtv Go to Quoted Post
how to choose the right one initial guess?

What I can suggest is to use right solver.

2024-08-18_00-07.png

2024-08-18_00-13.png

Offline Prmtv  
#5 Posted : 19 August 2024 01:25:46(UTC)
Prmtv


Rank: Advanced Member

Groups: Registered
Joined: 14/07/2022(UTC)
Posts: 43
Man
Russian Federation

Originally Posted by: overlord Go to Quoted Post
Originally Posted by: Prmtv Go to Quoted Post
how to choose the right one initial guess?

What I can suggest is to use right solver.

2024-08-18_00-07.png

2024-08-18_00-13.png



how is the order of output of variables determined? From function "Unknowns"?

2024-08-18_00-13.png
Offline overlord  
#6 Posted : 19 August 2024 01:51:08(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,191
Turkey

Was thanked: 544 time(s) in 366 post(s)
Originally Posted by: Prmtv Go to Quoted Post
how is the order of output of variables determined? From function "Unknowns"?[/attach]

My guess and and experience is they are ordered alphabetically.
Offline Prmtv  
#7 Posted : 23 August 2024 05:23:22(UTC)
Prmtv


Rank: Advanced Member

Groups: Registered
Joined: 14/07/2022(UTC)
Posts: 43
Man
Russian Federation

Originally Posted by: overlord Go to Quoted Post
Originally Posted by: Prmtv Go to Quoted Post
how to choose the right one initial guess?

What I can suggest is to use right solver.

2024-08-18_00-07.png

2024-08-18_00-13.png



Thanks!

But when creating exe-file required variables a, b, B, t = 1. Why does this happen? Or is this a feature of the plugin "Nonlinear solvers"?

0000.PNG
Offline overlord  
#8 Posted : 23 August 2024 06:05:06(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,191
Turkey

Was thanked: 544 time(s) in 366 post(s)
I can't know what you have done without your sheet.
However, this was not an issue when I saved it as an exe.

Regards

Click to expand
Offline Prmtv  
#9 Posted : 23 August 2024 09:42:01(UTC)
Prmtv


Rank: Advanced Member

Groups: Registered
Joined: 14/07/2022(UTC)
Posts: 43
Man
Russian Federation

Originally Posted by: overlord Go to Quoted Post
I can't know what you have done without your sheet.
However, this was not an issue when I saved it as an exe.

Regards

Click to expand


If I use the function "al_nleqsolve" then everything really works


The problem occurs when using the function "FindRoot"

00.PNG
Offline overlord  
#10 Posted : 23 August 2024 10:11:17(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,191
Turkey

Was thanked: 544 time(s) in 366 post(s)
It is due to some bug or miscode for FindRoot().
Or this is totally SMath result parse method.
Your solution (A) is stored symbolic.
Make it totally numeric by eval().
Exe file can show correct results after that.

Regards

Click to expand
Offline Prmtv  
#11 Posted : 26 August 2024 07:33:45(UTC)
Prmtv


Rank: Advanced Member

Groups: Registered
Joined: 14/07/2022(UTC)
Posts: 43
Man
Russian Federation

Originally Posted by: overlord Go to Quoted Post
It is due to some bug or miscode for FindRoot().
Or this is totally SMath result parse method.
Your solution (A) is stored symbolic.
Make it totally numeric by eval().
Exe file can show correct results after that.

Regards

Click to expand


Thanks!
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.