Solve function problem (simple example)

Solve function problem (simple example) - Messages

#1 Posted: 10/16/2018 5:23:51 AM
Michał Janowski

Michał Janowski

1 likes in 7 posts.

Group: User

Hello, please tell me what is wrong with this function?

Solve problem.jpg
Solve problem.sm (2 KiB) downloaded 43 time(s).
#2 Posted: 10/16/2018 6:38:47 AM
sergio

sergio

115 likes in 329 posts.

Group: User

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
#3 Posted: 10/16/2018 6:43:10 AM
Michał Janowski

Michał Janowski

1 likes in 7 posts.

Group: User

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?
#4 Posted: 10/16/2018 6:57:11 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

How 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
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

Full 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

Clipboard02.gif

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.

Clipboard03.gif

Best regards.
Alvaro.
#6 Posted: 10/16/2018 7:18:02 AM
Michał Janowski

Michał Janowski

1 likes in 7 posts.

Group: User

Thank you for your answers! It helped me a lot.

Mroczak
#7 Posted: 10/16/2018 9:41:28 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Thank you for your answers! It helped me a lot.



That will help you more.

Solve roots.sm (25 KiB) downloaded 52 time(s).
  • New Posts New Posts
  • No New Posts No New Posts