SMath Studio Forum
»
SMath Studio
»
Questions
»
problem with solving a system of equations
Rank: Advanced Member Groups: Registered
Joined: 14/07/2022(UTC) Posts: 43
|
Hello! Such a problem appeared. Please tell me what's the matter 00.sm (10kb) downloaded 8 time(s).Thanks!
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,046 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). |
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/07/2022(UTC) Posts: 43
|
how to choose the right one initial guess?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,191 Was thanked: 544 time(s) in 366 post(s)
|
Originally Posted by: Prmtv how to choose the right one initial guess? What I can suggest is to use right solver.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/07/2022(UTC) Posts: 43
|
how is the order of output of variables determined? From function "Unknowns"?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,191 Was thanked: 544 time(s) in 366 post(s)
|
Originally Posted by: Prmtv how is the order of output of variables determined? From function "Unknowns"?[/attach] My guess and and experience is they are ordered alphabetically.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/07/2022(UTC) Posts: 43
|
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"?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,191 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
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/07/2022(UTC) Posts: 43
|
Originally Posted by: overlord 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 If I use the function "al_nleqsolve" then everything really works The problem occurs when using the function "FindRoot"
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,191 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
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/07/2022(UTC) Posts: 43
|
Originally Posted by: overlord 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 Thanks!
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
problem with solving a system of equations
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.