From bc41644da8b02e013423a3b8a0284cd9722b35d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Wed, 12 Jun 2024 17:21:18 +0200 Subject: [PATCH] Use terms explicitly in conj --- src/complex.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/complex.jl b/src/complex.jl index f0547ff..805150a 100644 --- a/src/complex.jl +++ b/src/complex.jl @@ -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.