Open mcanyucel opened 2 years ago
Interesting. It gets stuck in an infinite loop between -40 and 250.
EDIT - Decreasing the maxStep
and increasing the maxIterations
seems to solve it. Maybe the algo could be improved to account for that?
Indeed, setting maxStep
to 0.1 solves with the default maxIterations
for goal
130 or similar numbers for x^2. Maybe quadratic functions are more susceptible to bouncing back and forth for large steps due to their higher order terms? I am really not that fluent in numerical analysis stuff to offer a lot of help or insight, though :). Possibly decreasing the step size automatically if the result gets stuck bouncing (yeah, that was not a very technical sentence) might help.
I am working with react and have a result table. i want to set element of last cell 0 . please guide on the same
Thank you for your work on this free library.. I was doing some tests before implementing it to my project, and I kept getting convergence error for simple quadratic functions. For example, the code below finds the root 10 as expected:
But if I change the goal to 130, I get failed to converge error:
Any ideas or tips for quadratic or higher order polynomials?