I am trying to find a root to an equation f[k,...]==0
numerically, where k is the variable I am solving for. Using both NSove
as well as FindRoot
I get the Error: Encountered non-numerical value for a derivative at t$50961 == 0'.
I am not sure why it talks about t
in the error message, since the variable I am solving for is named k
. t
is the time variable of an integration which is performed inside of the function f
. But for the root finding algorithm that should not be important.
Anyway, I thought that the algorithms Mathematica is trying to apply might not be suited to solve my equation. I thought that nothing could go wrong with the bisection method, but I cannot find it precoded in Mathematica.
I know that it is not hard to code it up. But is there really no precoded bisection method already available?
Thanks!
f[k,...]==0
?, I don't see any equation ? It's impolite of you to expect an answer without providing the code to reproduce. $\endgroup$f
which I have written here is a very complicated procedure, which I cannot plug into this forum. The core question is simple and foesn't require knowledge of this function: "Is there a bisection method precoded in Mathematica, yes or no?" I really do not think that is impolite to ask. $\endgroup$Method -> "Brent"
but not a bisection method. One can consider Brent's Method an improvement of the bisection method. Search this site if you really want an implementation of the bisection method. Others have written some code for it. $\endgroup$bisect = ResourceFunction["BisectionMethodFindRoot"]
$\endgroup$