Skip to content

Commit 7acf118

Browse files
committed
Add missing deriv
1 parent 47fd640 commit 7acf118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/roots.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Inputs:
132132
133133
"""
134134
# Contractor specific `roots` functions
135-
function roots(f, X::IntervalLike{T}, ::Type{Bisection}, tol::Float64=1e-3) where {T}
135+
function roots(f, X::IntervalLike{T}, ::Type{Bisection}, tol::Float64=1e-3; deriv = nothing) where {T}
136136
branch_and_prune(X, Bisection(f), tol)
137137
end
138138

@@ -155,7 +155,7 @@ function roots(f, X::IntervalBox{T}, ::Type{Newton}, tol::Float64=1e-3; deriv =
155155
end
156156

157157

158-
roots(f, r::Root, contractor::Type{C}, tol::Float64=1e-3; deriv= nothing) where {C<:Contractor} = roots(f, r.interval, contractor, tol; deriv = deriv)
158+
roots(f, r::Root, contractor::Type{C}, tol::Float64=1e-3; deriv = nothing) where {C<:Contractor} = roots(f, r.interval, contractor, tol; deriv = deriv)
159159

160160
# Acting on a Vector:
161161

0 commit comments

Comments
 (0)