diff --git a/src/slopes.jl b/src/slopes.jl index 82119666..82fb54ed 100644 --- a/src/slopes.jl +++ b/src/slopes.jl @@ -3,7 +3,7 @@ using IntervalArithmetic, ForwardDiff import Base: +, -, *, /, ^, sqrt, exp, log, sin, cos, tan, asin, acos, atan import IntervalArithmetic: mid, interval -function slope(f::Function, x::Interval, c::Number) +function slope(f::Function, x::Interval, c::Number = mid(x)) f(slope_var(x, c)).s end