Skip to content

Add documentation for Muller's method #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/src/native/bracketingnonlinearsolve.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ Bisection
Falsi
Ridder
Brent
Muller
```
5 changes: 3 additions & 2 deletions docs/src/solvers/bracketing_solvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ This gives a robust and fast method, which therefore enjoys considerable popular

## Full List of Methods

### SimpleNonlinearSolve.jl
### BracketingNonlinearSolve.jl

These methods are automatically included as part of NonlinearSolve.jl. Though, one can use
SimpleNonlinearSolve.jl directly to decrease the dependencies and improve load time.
BracketingNonlinearSolve.jl directly to decrease the dependencies and improve load time.

- [`ITP`](@ref): A non-allocating ITP (Interpolate, Truncate & Project) method
- [`Falsi`](@ref): A non-allocating regula falsi method
- [`Bisection`](@ref): A common bisection method
- [`Ridder`](@ref): A non-allocating Ridder method
- [`Brent`](@ref): A non-allocating Brent method
- [`Muller`](@ref): A non-allocating Muller's method
18 changes: 14 additions & 4 deletions lib/BracketingNonlinearSolve/src/muller.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
"""
Muller(; middle = nothing)

Muller's method for determining a root of a univariate, scalar function. The
algorithm, described in Sec. 9.5.2 of
[Press et al. (2007)](https://numerical.recipes/book.html), requires three
initial guesses `(left, middle, right)` for the root.
Muller's method for determining a root of a univariate, scalar function.

The algorithm, described in Sec. 9.5.2 of
[Press et al. (2007)](https://numerical.recipes/book.html), is a generalization
of the secant method, using quadratic interpolation of three points to find the
next estimate for the root. Due to the quadratic interpolation, the method is
well suited for obtaining complex roots.

This method requires three initial guesses `(left, middle, right)` for the
solution. The guesses `(left, right) = tspan` are provided by the
`IntervalNonlinearProblem`, while the `middle` guess may be specified as an
optional keyword argument. In notable contrast to the other
`BracketingNonlinearSolve.jl` solvers, the `Muller` algorithm does not need
`(left, right)` to bracket the root.

### Keyword Arguments

Expand Down
Loading