Skip to content

bracketing methods with CommonSolve interface #452

Open
@longemen3000

Description

@longemen3000

the CommonSolve interface mentions:

The problem-algorithm-solve interface is a pattern popularized in Julia by the DifferentialEquations.jl suite of packages. This can be used as an alternative to find_zero. Unlike find_zero, solve will return NaN on non-convergence.

But, for bracketing methods, the function Roots.assert_bracket throws:

assert_bracket(fx0, fx1) = isbracket(fx0, fx1) || throw(ArgumentError(bracketing_error))

The error path for assert_bracket. also gets activated when one of the values is NaN, instead of returning NaN.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions