Skip to content

Commit 88baff4

Browse files
authored
Merge pull request #233 from jverzani/Qcomplex
re-add complex in Q module; close #231
2 parents b4610c5 + f750e19 commit 88baff4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/assumptions.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ import Compat.LinearAlgebra: det, norm
9595
Q_predicates = (:antihermitian,
9696
:bounded, :finite, # bounded deprecated
9797
:commutative,
98-
# :complex,
98+
:complex,
9999
:composite,
100100
:even,
101101
:extended_real,

test/tests.jl

+6
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,12 @@ end
521521
# issue 222 type of eigvals
522522
A = [Sym("a") 1; 0 1]
523523
@test typeof(eigvals(A)) <: Vector{Sym}
524+
525+
# issue 231 Q.complex
526+
@vars x_maybecomplex
527+
@vars x_imag imaginary=true
528+
@test ask(Q.complex(x_maybecomplex)) == nothing
529+
@test ask(Q.complex(x_imag)) == true
524530
end
525531

526532
@testset "generic programming, issue 223" begin

0 commit comments

Comments
 (0)