We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfcb7da commit 03cf261Copy full SHA for 03cf261
src/slopes.jl
@@ -3,7 +3,7 @@ using IntervalArithmetic, ForwardDiff
3
import Base: +, -, *, /, ^, sqrt, exp, log, sin, cos, tan, asin, acos, atan
4
import IntervalArithmetic: mid, interval
5
6
-function slope(f::Function, x::Interval, c::Number)
+function slope(f::Function, x::Interval, c::Number = mid(x))
7
f(slope_var(x, c)).s
8
end
9
0 commit comments