From 03cf2614ae281e4b84f170d75912328983941401 Mon Sep 17 00:00:00 2001 From: Eeshan Gupta Date: Wed, 18 Jul 2018 22:08:47 +0530 Subject: [PATCH] Add default value for c --- src/slopes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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