Skip to content

Commit d80403e

Browse files
eeshan9815dpsanders
authored andcommitted
fix UndefVarError when debug=true in newton_refine (#37)
1 parent bfd84fb commit d80403e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/newton.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ doc"""If a root is known to be inside an interval,
99
function newton_refine{N,T}(f::Function, f_prime::Function, X::Union{Interval{T}, IntervalBox{N,T}};
1010
tolerance=eps(T), debug=false)
1111

12-
debug && (print("Entering newton_refine:"); @show x)
12+
debug && (print("Entering newton_refine:"); @show X)
1313

1414
while diam(X) > tolerance # avoid problem with tiny floating-point numbers if 0 is a root
1515
deriv = f_prime(X)
@@ -35,7 +35,7 @@ doc"""If a root is known to be inside an interval,
3535
function newton_refine{T}(f::Function, f_prime::Function, X::Interval{T};
3636
tolerance=eps(T), debug=false)
3737

38-
debug && (print("Entering newton_refine:"); @show x)
38+
debug && (print("Entering newton_refine:"); @show X)
3939

4040
while diam(X) > tolerance # avoid problem with tiny floating-point numbers if 0 is a root
4141
deriv = f_prime(X)

0 commit comments

Comments
 (0)