(find-root f lower-bound upper-bound)
(find-root f
lower-bound
upper-bound
{:keys [absolute-accuracy relative-accuracy max-iters initial-value
solver]
:or {max-iters 100 solver :brent}})
Find zero (root) of a function f
in given range [lower-bound
, upper-bound
].
Optional parameters:
:absolute-accuracy
- default 1.0e-8:relative-accuracy
:max-iters
- maximum iterations (default: 100):initial-value
- algorithm starting value:solver
- one of: :brent
(default), :bisection
, :illinois
, :muller
, :muller2
, :pegasus
, :regula-falsi
, :ridders
and :secant
.Find zero (root) of a function `f` in given range [`lower-bound`, `upper-bound`]. Optional parameters: * `:absolute-accuracy` - default 1.0e-8 * `:relative-accuracy` * `:max-iters` - maximum iterations (default: 100) * `:initial-value` - algorithm starting value * `:solver` - one of: `:brent` (default), `:bisection`, `:illinois`, `:muller`, `:muller2`, `:pegasus`, `:regula-falsi`, `:ridders` and `:secant`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close