Skip to content

Commit

Permalink
Use terms explicitly in conj (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Jun 12, 2024
1 parent bc7af47 commit c8212d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/complex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function Base.conj(x::T) where {T<:AbstractTerm}
end
function Base.conj(x::P) where {P<:AbstractPolynomial}
return iszero(x) || isreal(x) ? MA.copy_if_mutable(x) :
convert(P, polynomial([conj(t) for t in x]))
convert(P, polynomial([conj(t) for t in terms(x)]))
end

# Real and imaginary parts are harder to realize. The real part of a monomial can easily be a polynomial.
Expand Down

0 comments on commit c8212d1

Please sign in to comment.