module GSL::MultiRoot
Defined in:
gsl/maths/optimization/multiroot.crClass Method Summary
-
.find_root(f : GSL::MultiRootFunction, initial : GSL::Vector, eps_x : Float64 = 1e-6, eps_f : Float64 = 1e-9, *, algorithm : GSL::Roots::AlgorithmF = GSL::MultiRoot::AlgorithmF::HybridScaled, max_iter = 10000)
High-level interface to root finder.
- .find_root(initial : GSL::Vector, eps_x : Float64 = 1e-6, eps_f : Float64 = 1e-9, *, algorithm : GSL::Roots::AlgorithmFDF = GSL::MultiRoot::AlgorithmF::HybridScaled, max_iter = 10000, &f : GSL::MultiRootFunctionFDF)
-
.find_root(f : GSL::MultiRootFunctionFDF, initial : GSL::Vector, eps_x : Float64 = 1e-6, eps_f : Float64 = 1e-9, *, algorithm : GSL::Roots::AlgorithmFDF = GSL::MultiRoot::AlgorithmF::HybridJScaled, max_iter = 10000)
High-level interface to root finder.
Class Method Detail
def self.find_root(f : GSL::MultiRootFunction, initial : GSL::Vector, eps_x : Float64 = 1e-6, eps_f : Float64 = 1e-9, *, algorithm : GSL::Roots::AlgorithmF = GSL::MultiRoot::AlgorithmF::HybridScaled, max_iter = 10000)
#
High-level interface to root finder.
f
- function to minimizeinitial
- initial guesseps_x
- tolerance by x. Iterations terminates when all components of dx are <= eps_xeps_f
- tolerance by f. Iterations terminates when all components of f are <= eps_xalgorithm
- root finding algorithm to be usedmax_iter
- maximum number of iterations
returns {result, x_root}
result
(typeGSL::Result
) represents result of minimizationx_root
- value of root on last iteration
def self.find_root(initial : GSL::Vector, eps_x : Float64 = 1e-6, eps_f : Float64 = 1e-9, *, algorithm : GSL::Roots::AlgorithmFDF = GSL::MultiRoot::AlgorithmF::HybridScaled, max_iter = 10000, &f : GSL::MultiRootFunctionFDF)
#
def self.find_root(f : GSL::MultiRootFunctionFDF, initial : GSL::Vector, eps_x : Float64 = 1e-6, eps_f : Float64 = 1e-9, *, algorithm : GSL::Roots::AlgorithmFDF = GSL::MultiRoot::AlgorithmF::HybridJScaled, max_iter = 10000)
#
High-level interface to root finder.
f
- function to minimizeinitial
- initial guesseps_x
- tolerance by x. Iterations terminates when all components of dx are <= eps_xeps_f
- tolerance by f. Iterations terminates when all components of f are <= eps_xalgorithm
- root finding algorithm to be usedmax_iter
- maximum number of iterations
returns {result, x_root}
result
(typeGSL::Result
) represents result of minimizationx_root
- value of root on last iteration