Skip to content

Commit a596f6b

Browse files
authored
use iszero in inverse (#350)
1 parent bc1735c commit a596f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ f^{-1}(t) = \sum_{n=1}^{N} \frac{t^n}{n!} \left.
12291229
""" inverse
12301230

12311231
function inverse(f::Taylor1{T}) where {T<:Number}
1232-
if f[0] != zero(T)
1232+
if !iszero(f[0])
12331233
throw(DomainError(f,
12341234
"""
12351235
Evaluation of Taylor1 series at 0 is non-zero. For high accuracy, revert

0 commit comments

Comments
 (0)