Best way to use a compiled function in findroot



On Fri, Aug 27, 2010 at 12:24 PM, Sergio Callegari
<sergio.callegari at gmail.com> wrote:

> Yes, of course... sorry for all the mistakes in writing in the code... but
> you got the idea.

I'm sorry to say it, but, it's in your own interest to ask a well-formed
question; it increases your chances of getting a well-formed answer.

> Any idea at the correct way to code 'g' ?

Works for me as it stands.
g(0);
 => 0.0

best

Robert Dodier