jsl/design/solvers¶
Package name: jsl/design/solvers
Summary¶
General Definitions¶
Function | Description |
---|---|
steffensen-method | Iterative Root Finding via Steffensen's Method |
Definitions¶
General Definitions¶
steffensen-method¶
Iterative Root Finding via Steffensen's Method
public defn steffensen-method (f:(Double) -> Double, x0:Double, step:Double = ?, eps:Double = ?, max-iter:Int = ?) -> Double
f: (Double) -> Double
- Function f(x) for which we will find a zerox0: Double
- Starting X locationstep: Double
- Size of the step used for computing the derivative off
numerically. The default value is 0.001eps: Double
- Epsilon is used to determine when to stop iterating, We comparef(x)
to thiseps
value and if|f(x)| < eps
we stop iterating. Default value is 0.01max-iter: Int
- Maximum number of iterations to attempt. This prevents the solver from getting stuck looking for a solution. Default value is 1000- Returns
Double
- Value ofx
that approximates a zero inf(x)