Skip to content

Commit 03cf261

Browse files
committed
Add default value for c
1 parent cfcb7da commit 03cf261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/slopes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using IntervalArithmetic, ForwardDiff
33
import Base: +, -, *, /, ^, sqrt, exp, log, sin, cos, tan, asin, acos, atan
44
import IntervalArithmetic: mid, interval
55

6-
function slope(f::Function, x::Interval, c::Number)
6+
function slope(f::Function, x::Interval, c::Number = mid(x))
77
f(slope_var(x, c)).s
88
end
99

0 commit comments

Comments
 (0)