Is this a continuation of this topic? If so, your function is a CDF, just vertically translated by a constant, so you could use the fact that it’s nondecreasing to shave off an instruction or two from the hot loop in the bisection method code. That could maybe be a performance improvement, if the evaluation of the function is cheap enough.
nsajko
10
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Find the value of the inverse of a function in some point | 3 | 790 | September 1, 2021 | |
| Fastest way to do memoization? | 11 | 956 | February 23, 2023 | |
| Solving for transcendental equation | 15 | 307 | July 31, 2025 | |
| Cache results between function calls in Optimization.jl | 11 | 777 | May 1, 2023 | |
| Is there a faster bisection root solver (that uses atol)? | 22 | 4381 | August 13, 2018 |