Findroot with a precompiled function with parameters – mathematica.stackexchange.com

If I want to precompile a function that I intend to put into FindRoot many times, I could do it like this: f[x_] := x^x + (4 - x)^(4 - x) - 10 g = Compile[{x}, Evaluate[f[x]]]; FindRoot[g, {3.99}] ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Findroot with a precompiled function with parameters – mathematica.stackexchange.com"