Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jverzani committed Apr 13, 2021
1 parent 4258a2d commit 5c0d6a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rational-functions/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,13 @@ end
# like Base.divgcd in rational.jl
# divide p,q by u
function _divgcd(v::Val{:euclidean}, pq; kwargs...)
u = gcd(v, pqs(pq)...; kwargs...)
p,q = pqs(pq)
u = gcd(v, p, q; kwargs...)
p÷u, q÷u
end
function _divgcd(v::Val{:noda_sasaki}, pq; kwargs...)
u = gcd(v, pqs(pq)...; kwargs...)
p,q = pqs(pq)
u = gcd(v, p, q; kwargs...)
p÷u, q÷u
end
function _divgcd(v::Val{:numerical}, pq; kwargs...)
Expand Down

0 comments on commit 5c0d6a6

Please sign in to comment.