Skip to content

Specifying a maximum number of bisections #178

@AnderGray

Description

@AnderGray

Is it possible to specify a maximum number of bisections?

I see there are some functions where you can specify maxlevels:

function find_roots(f::Function, a::Interval{T}, method::Function = newton;
                    tolerance = eps(T), debug = false, maxlevel = 30) where {T}

    method(f, a; tolerance=tolerance, debug=debug, maxlevel=maxlevel)
end

but not sure if it's used in the method. I guess this was put here as a future feature?

I've tried also changing tol, but it didn't seem to change much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions