Skip to content

Commit

Permalink
use iszero in inverse (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnemecek authored Mar 10, 2024
1 parent bc1735c commit a596f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ f^{-1}(t) = \sum_{n=1}^{N} \frac{t^n}{n!} \left.
""" inverse

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

0 comments on commit a596f6b

Please sign in to comment.