I have a symbolic matrix:

Potential = 
 SparseArray[{Band[{1, 1}] -> V0/2, Band[{2, 1}] -> V0/4, 
   Band[{1, 2}] -> V0/4}, {2*max + 1, 2*max + 1 }]

with max = 3 and V0 to be determined later, but it's a real number.

If I check HermitianMatrixQ[Potential] it returns False because it does not know that Conjugate[V0] = V0.

How can I set conditions on V0 to specify it's a real number?

  • 2
    $\begingroup$ Check the docs of HermitianMatrixQ[], particularly the SameTest option. $\endgroup$ Commented Sep 28, 2018 at 16:54

1 Answer 1

Simplify[ConjugateTranspose[Potential] == Potential, V0 ∈ Reals]



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.