Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.
This repository was archived by the owner on May 15, 2025. It is now read-only.

abstol and reltol are ignored #57

@sjdaines

Description

@sjdaines

abstol and reltol keyword arguments seem to be ignored.

This makes SimpleNonlinearSolve unusable for any problem that returns a result with less than full floating point precision

julia> using SimpleNonlinearSolve

julia> f(u, p) = u^4 .- 2.0
julia> prob = IntervalNonlinearProblem(f, (1.0, 2.0))

julia> sol = solve(probB, Brent())  # full precision
u: 1.1892071150027212

julia> sol = solve(prob, Brent(), maxiters=3) # maxiters works
u: 1.0666666666666667

julia> sol = solve(prob, Brent(), abstol=0.1)  # abstol is ignored and gives the maximum precision
u: 1.1892071150027212

More fundamental problem perhaps is that there are apparently no tests for abstol and reltol ?

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