Thin wrapper around nleqslv and dfsane

nlsolve(x, fn, tol = 1e-06, maxit = 100, solver = "nleqslv")

Arguments

x

Starting point

fn

Function to solve

tol

Tolerance (for nleqslv this will be both absolute and relative)

maxit

Maximum number of iterations. The number of function evaluations will likely exceed this.

solver

The solver to use. Either "nleqslv" or "dfsane" for now.