Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:objects:operator:properties:complex [2016/09/25 13:55] – created Maurits W. Haverkort | documentation:language_reference:objects:operator:properties:complex [2016/10/10 09:41] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Complex ====== | ||
| + | ### | ||
| + | boolean, read-only. | ||
| + | ### | ||
| + | |||
| + | ### | ||
| + | For an operator //O//, // | ||
| + | ### | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | ### | ||
| + | We define: | ||
| + | $$O=3.4+1.2a^{\dagger}_{0}\, | ||
| + | and | ||
| + | $$O=3.4+1.2a^{\dagger}_{0}\, | ||
| + | and print for each of these operators if they are complex or not. (true for the first case, false for the second case). | ||
| + | ### | ||
| + | |||
| + | ==== Input ==== | ||
| + | <code Quanty Example.Quanty> | ||
| + | NF=3 | ||
| + | NB=0 | ||
| + | O = NewOperator(NF, | ||
| + | print(O.Complex) | ||
| + | O = NewOperator(NF, | ||
| + | print(O.Complex) | ||
| + | </ | ||
| + | |||
| + | ==== Result ==== | ||
| + | <file Quanty_Output> | ||
| + | true | ||
| + | false | ||
| + | </ | ||
| + | |||
| + | ===== Available properties ===== | ||
| + | {{indexmenu> | ||