Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Add Muller's method #139

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Add Muller's method #139

wants to merge 6 commits into from

Conversation

fgittins
Copy link

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

This implements the method discussed in SciML/NonlinearSolve.jl#403.

src/nlsolve/muller.jl Outdated Show resolved Hide resolved
@avik-pal
Copy link
Member

Does this method only work for scalars?

@fgittins
Copy link
Author

Yes. It only works for univariate, scalar functions.


function SciMLBase.solve(prob::NonlinearProblem, alg::SimpleMuller, args...;
abstol = nothing, maxiters = 1000, kwargs...)
@assert !isinplace(prob) "`SimpleMuller` only supports OOP problems."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add some checks here for x is a 3 tuple and the elements are scalars

"""
SimpleMuller()

Muller's method.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the documentation a bit more detailed. References, restrictions like only scalars and such

@avik-pal
Copy link
Member

avik-pal commented Jun 1, 2024

@ChrisRackauckas how should we go about this? This is a significant deviation from how the other problems need to be framed

@ChrisRackauckas
Copy link
Member

Treating it as an IntervalNonlinearProblem solver and then getting the third guess as the midpoint would be fine.

@avik-pal
Copy link
Member

avik-pal commented Jun 4, 2024

That sounds like a good way to proceed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants