Skip to content

Commit

Permalink
Add default value for c
Browse files Browse the repository at this point in the history
  • Loading branch information
eeshan9815 committed Jul 18, 2018
1 parent cfcb7da commit 03cf261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slopes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 03cf261

Please sign in to comment.