Best way to use a compiled function in findroot



On 9/1/10, Sergio Callegari <sergio.callegari at gmail.com> wrote:

> In any case, it still does not work
>
> g(y) := block([x : gensym()], findroot(lambda([x], f(x) - y), x, - 1, 1));

I have to wonder why you insist on calling this nonexistent function, findroot.

There is a function find_root which might be of interest.

Robert Dodier