-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repetitive solving #407
Comments
is your function continuous? it is differentiable?, if a) is true, maybe you could benefit from a secant method, if it is 1) and 2), you could use https://juliamath.github.io/Roots.jl/stable/reference/#Roots.LithBoonkkampIJzermanBracket |
Yes, either of those should work, though a bracketing method does offer guarantees. For a bracketing method, you might gain a few function evaluations by using the interval (f(x_last), oo) as the function is increasing, so if you are looking at finding the function at an increasing selection of points you need not start at 0. I guess, this is most efficient if you were to find the inverse at select points and then interpolate between those to fill out the description of the curve. |
No it is not guaranteed to be continuous, nor differentiable. But it is guaranteed to be convex and non-increasing in the loose sense, that is,
Those properties are strong, but do not ensure continuity : there might be a point Due to this non-continuity, I thought that the bisection was my best bet, but maybe i'm wrong ? I do want to store the previously-found inverses so that the bisection can restart from a smaller interval than |
I have a non-increasing function$f$ on $\mathbb R_+$ that starts at $f(0) =1$ and ends up at $f(Inf) = 0$ . I want to compute the inverse of the function, and I am currently using the folowing code:
Then i am repetitively calling this inversion as, e.g, :
Would it be possible to reduce the cost of subsequent evaluations ? I guess that, since this is using a bisection method, we could re-start each iteration using the previous bisection. Is there something like that implemented in Roots.jl ?
The text was updated successfully, but these errors were encountered: