Skip to content

Commit

Permalink
fixed precisiosn of subtraction
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausC committed Oct 7, 2023
1 parent ed12d40 commit bffa2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/powerseries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function +(p::S, q::S) where {S<:PowerSeries}
end
function -(p::S, q::S) where {S<:PowerSeries}
s = -(p.poly, q.poly)
rt = min(absprecision(p), absprecision(q)) - ord(s)
rt = pdiff(min(absprecision(p), absprecision(q)), ord(s))
s, rt = ps_from_poly!(s, precision(S), rt)
S(s, rt)
end
Expand Down

0 comments on commit bffa2d3

Please sign in to comment.