Skip to content

Commit

Permalink
fix precisions in case 0 / power series
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausC committed Oct 7, 2023
1 parent bffa2d3 commit c81d697
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 @@ -134,7 +134,7 @@ function /(tp::S, tq::S) where {S<:PowerSeries}
R = basetype(P)
p, q = tp.poly, tq.poly
if iszero(p) && isunit(tq)
return S(p, precision(tp) + ord(tp) - ord(tq))
return S(p, pdiff(precision(tp), -ord(tp) + ord(tq)))
end
b = p.coeff
a = q.coeff
Expand Down

0 comments on commit c81d697

Please sign in to comment.