Unable to assign to variable in SS 0.98.5981 when using FindRoot Function - Messages
WroteHi
The "Open Channel Design" file attached earlier had erros inside the program section in calculating the critical slopes for each bed width. The corrected program is attached now.
Regret any inconvenience.
Now I observe that the result of FindRoot function unable to assign to a variable in attached SS file.
Test_FindRoot-1.sm (40 KiB) downloaded 52 time(s).
Above file was extracted from the original file Channel Design-using FindRoot-R1.sm (206 KiB) downloaded 42 time(s). for testing, but both had the same problem
under SS 0.98.5981. However, it was perfectly OK when I uploaded on 18th Oct. 2015 (cannot remember the SS version).
As Andrey has suggested, I did a clean installtion of SS, but the problem still exists.
Another isuue is also shown in the image.
WroteWroteHi
The "Open Channel Design" file attached earlier had erros inside the program section in calculating the critical slopes for each bed width. The corrected program is attached now.
Regret any inconvenience.
Now I observe that the result of FindRoot function unable to assign to a variable in attached SS file.
Test_FindRoot-1.sm (40 KiB) downloaded 52 time(s).
Above file was extracted from the original file Channel Design-using FindRoot-R1.sm (206 KiB) downloaded 42 time(s). for testing, but both had the same problem
under SS 0.98.5981. However, it was perfectly OK when I uploaded on 18th Oct. 2015 (cannot remember the SS version).
As Andrey has suggested, I did a clean installtion of SS, but the problem still exists.
Another isuue is also shown in the image.
Your worksheet will work in latest stable release 5935. The error you are facing is likely due http://smath.info/bts/Issues/IssueDetail.aspx?id=2318; I have a worksheet that is broken due to this and Andrey said he will fix it in the next nightly.
Regarding 3m - 2m = m, well I do hope Andrey will fix this - it is clearly an undesired behaviour.
I hope these issues will be resolved by Andrey at his earliest.
Many thanks to Andrey for your great efforts and contributions in this regard.
But for now it can be fixed by plug-ins developer as I've suggested here: http://en.smath.info/forum/yaf_postsm33336_SMath-Studio-0-98-5973--09-May-2016.aspx#post33336
Let me know if any help from my side required.
Regards.
WroteWroteHi
The "Open Channel Design" file attached earlier had erros inside the program section in calculating the critical slopes for each bed width. The corrected program is attached now.
Regret any inconvenience.
Now I observe that the result of FindRoot function unable to assign to a variable in attached SS file.
Test_FindRoot-1.sm (40 KiB) downloaded 52 time(s).
Above file was extracted from the original file Channel Design-using FindRoot-R1.sm (206 KiB) downloaded 42 time(s). for testing, but both had the same problem
under SS 0.98.5981. However, it was perfectly OK when I uploaded on 18th Oct. 2015 (cannot remember the SS version).
As Andrey has suggested, I did a clean installtion of SS, but the problem still exists.
Another isuue is also shown in the image.
A working fix is to use line() in the function definition. Hope this helps Andrey to find a permanent fix.
Test_FindRoot-1.sm (40 KiB) downloaded 41 time(s).
Wrote
A working fix is to use line() in the function definition. Hope this helps Andrey to find a permanent fix.
Test_FindRoot-1.sm (40 KiB) downloaded 41 time(s).
Well I tried... It is still not possible to assign a value to a variable using FindRoot(). This nightly is officially broken for me - I NEED A WORKING SOLVER.
Back to stable release...
BugFR.sm (6 KiB) downloaded 65 time(s).
It has corrections related to this topic.
I suggest to update plug-ins according to this comment: http://en.smath.info/forum/yaf_postsm33336_SMath-Studio-0-98-5973--09-May-2016.aspx#post33336
I you have to use not updated plug-in please give a chance to eval() function:
Why these changes are done:
Regards.

I'm reworking the core of this plugin, will be back ASAP.
Wrote
BugFR.sm (6 KiB) downloaded 65 time(s).
I am a little needy here, because without a working FindRoot() function I am left without a solver that I can use to assign values to variables. I do this all the time in tasks similar to... How many stirrups do I need in this RC beam?
Hope you guys can get me the FIndRoot() back :-)
... A peculiar occurrence. If you place the cursor inside the first red box and hit Ctrl + >, the 2nd red box will evaluate correctly. Magic!!???
Please check the latest nightly build (Note: it is required to download of the latest Nonlinear Solvers plug-in).
BugFR.sm (6 KiB) downloaded 65 time(s).
It still does not work with 0.98.5997 and updated non-linear solvers on my machine
Thanks!

WroteCan someone please check this file?
BugFR.sm (6 KiB) downloaded 65 time(s).
It still does not work with 0.98.5997 and updated non-linear solvers on my machine
Thanks!
It works as it should. You assign A.v in the first solution, thus in the second (C:...) there's nothing to solve. Use Clear(A.v) after the first to make it working the 2nd.
WroteThank you Andrey
WroteCan someone please check this file?
BugFR.sm (6 KiB) downloaded 65 time(s).
It still does not work with 0.98.5997 and updated non-linear solvers on my machine
Thanks!
It works as it should. You assign A.v in the first solution, thus in the second (C:...) there's nothing to solve. Use Clear(A.v) after the first to make it working the 2nd.
Thank you, I was not aware that FindRoot() automatically asssigns the result to a variable. I guess I was just stirring mud here..
Actually if this is correct this feature might be undesirable. What if you wooul like to solve a list of equations that have same variable? You will have to use "clear" every time...
Thank you Andrey!!!
Wrotewith Smath 5346 UNofficial release. No idea if it makes sense ?
I cannot reproduce neither with version 1.0999.5 of the plugin nor with later versions (strange). I suppose it may have sense, in some way, since undefined variables are store as names. However the second result is wrong, so something definitely goes wrong in that case :/
-
New Posts
-
No New Posts