1 Pages (7 items)
Solve function problem (simple example) - Messages
#1 Posted: 10/16/2018 5:23:51 AM
Hello, please tell me what is wrong with this function?

Solve problem.sm (2 KiB) downloaded 43 time(s).
Solve problem.sm (2 KiB) downloaded 43 time(s).
#2 Posted: 10/16/2018 6:38:47 AM
The solution method is numeric and depends on the search limits of the roots. By appropriately setting the limits to the nearest values (Tools->Options->Calculation->Roots (range)-10 + 10), you get the correct result. Downstream of a numerical solution, it is always necessary to proceed to the direct verification of the result (sanity check).
sergio
sergio
#3 Posted: 10/16/2018 6:43:10 AM
Full reinstallation (including deletion of plugins) repaired this problem. But what was exact source?.. I don't know.
Edit:
I was writing post when You answered my problem... Change of the range of roots - this is the correct answer.
But now, there is a question: how to use this range? (cuz I remember that I had to increase it becouse there were no roots in my previous calculations and now I need to decrease it).
How to handle with it if it is defined globally for spreadsheet and not for exact calculation?
Edit:
I was writing post when You answered my problem... Change of the range of roots - this is the correct answer.
But now, there is a question: how to use this range? (cuz I remember that I had to increase it becouse there were no roots in my previous calculations and now I need to decrease it).
How to handle with it if it is defined globally for spreadsheet and not for exact calculation?
#4 Posted: 10/16/2018 6:57:11 AM
WroteHow to handle with it if it is defined globally for spreadsheet and not for exact calculation?
Use solve(4) instead of solve(2). The one with 2 arguments it's handly for calculations on the fly, but not reliable for structured calculations.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Posted: 10/16/2018 7:08:50 AM
WroteFull reinstallation (including deletion of plugins) repaired this problem. But what was exact source?.. I don't know.
If you put some big range, you get wrong answers, like in this picture
Wrote
But now, there is a question: how to use this range? (cuz I remember that I had to increase it becouse there were no roots in my previous calculations and now I need to decrease it).
How to handle with it if it is defined globally for spreadsheet and not for exact calculation?
You can't. Solve with default range for search "all" the roots it's just a helper for some easy calculations. If it give the correct answer, good, but if not, there are not to much to do.
For that you must to use the solve with 4 arguments (or other numerical solver), and get the roots one by one.
Best regards.
Alvaro.
#6 Posted: 10/16/2018 7:18:02 AM
Thank you for your answers! It helped me a lot.
Mroczak
Mroczak
#7 Posted: 10/16/2018 9:41:28 AM
WroteThank you for your answers! It helped me a lot.
That will help you more.
Solve roots.sm (25 KiB) downloaded 52 time(s).
1 Pages (7 items)
-
New Posts
-
No New Posts