5
$\begingroup$

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?

$\endgroup$
6
$\begingroup$
Simplify[ConjugateTranspose[Potential] == Potential, V0 ∈ Reals]

True

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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