Loading [MathJax]/jax/output/CommonHTML/jax.js

Complex

boolean, read-only.

For an operator O, O.Complex returns a boolean (true or false) stating if the operator contains complex numbers or not.

Example

We define: O=3.4+1.2a0a0+(2.5+I)a1a2, and O=3.4+1.2a0a0+(2.5)a1a2, and print for each of these operators if they are complex or not. (true for the first case, false for the second case).

Input

Example.Quanty
NF=3
NB=0
O = NewOperator(NF,NB,{{3.4},{0,-0,1.2},{1,-2,2.5+I}})
print(O.Complex)
O = NewOperator(NF,NB,{{3.4},{0,-0,1.2},{1,-2,2.5}})
print(O.Complex)

Result

true
false

Available properties

Print/export