We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47ee3b8 commit fe710c8Copy full SHA for fe710c8
src/show.jl
@@ -2,8 +2,9 @@ function show(io::IO, v::AbstractVariable)
2
print(io, name(v))
3
end
4
5
-
6
-_isone(x::T) where T = x == one(T)
+if VERSION < v"0.7.0-DEV.1319"
+ isone(x::T) where T = x == one(T)
7
+end
8
9
function show(io::IO, m::AbstractMonomial)
10
if isconstant(m)
@@ -12,7 +13,7 @@ function show(io::IO, m::AbstractMonomial)
12
13
for (var, exp) in zip(variables(m), exponents(m))
14
if !iszero(exp)
15
print(io, var)
- if !_isone(exp)
16
+ if !isone(exp)
17
print(io, "^", exp)
18
19
@@ -24,7 +25,7 @@ function Base.show(io::IO, t::AbstractTerm)
24
25
if isconstant(t)
26
print(io, coefficient(t))
27
else
- if !_isone(coefficient(t))
28
+ if !isone(coefficient(t))
29
30
31
if !iszero(t)
0 commit comments