@@ -9,7 +9,7 @@ export polydir #Deprecated
9
9
import Base: length, endof, getindex, setindex!, copy, zero, one, convert
10
10
import Base: show, print, * , / , // , - , + , == , divrem, rem, eltype
11
11
12
- eps {T} (:: Type{T} ) = convert (T, 0 )
12
+ eps {T} (:: Type{T} ) = zero (T )
13
13
eps {F<:FloatingPoint} (x:: Type{F} ) = Base. eps (F)
14
14
eps {T} (x:: Type{Complex{T}} ) = eps (T)
15
15
@@ -67,7 +67,7 @@ function print{T}(io::IO, p::Poly{T})
67
67
if j == 1
68
68
pj < 0 && print (io, " -" ) # Prepend - if first and negative
69
69
else
70
- pj < 0 ? print (io," - " ) : print (" + " )
70
+ pj < 0 ? print (io," - " ) : print (io, " + " )
71
71
end
72
72
# Print pj if pj is the last coefficient, or pj is not identically 1
73
73
if j == n || abs (magpj - 1 ) > 2 * eps (T)
@@ -97,7 +97,7 @@ function print{T<:Complex}(io::IO, p::Poly{T})
97
97
if abs (pj) > 2 * eps (T)
98
98
if ! (abs_impj > 2 * eps (T))
99
99
if j > 1
100
- real (pj) < 0 ? print (io," - " ) : print (" + " )
100
+ real (pj) < 0 ? print (io," - " ) : print (io, " + " )
101
101
else
102
102
real (pj) < 0 && print (io, " -" ) # Prepend - if first and negative
103
103
end
0 commit comments