Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:language_reference:objects:operator:properties:nb [2016/09/25 13:56] – created Maurits W. Haverkortdocumentation:language_reference:objects:operator:properties:nb [2016/10/10 09:41] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== NB ======
  
 +###
 +unsigned integer, read and write
 +###
 +
 +###
 +**Current version does not suport bosons, i.e. NB must always be //0//.**
 +###
 +
 +###
 +An integer representing the number of Bosons in the basis. For Operator //O//, index //0// to //O.NF-1// refers to Fermions, index //O.NF// to //O.NF+O.NB-1// refers to Bosons. Changing this number changes the operator. If the new number of Bosons is smaller than the old number all operators referring to Bosons larger than //NB-1// will be removed from the operator.
 +###
 +
 +===== Example =====
 +
 +###
 +description text
 +###
 +
 +==== Input ====
 +<code Quanty Example.Quanty>
 +NF=3
 +NB=0
 +O = NewOperator(NF,NB,{{3.4},{0,-0,1.2},{1,-2,2.5+I}})
 +print(O.NB)
 +O.NB=3
 +</code>
 +
 +==== Result ====
 +<file Quanty_Output>
 +0
 +Error while executing the script:
 +/Example.Quanty:8: Current version does not suport Bosons
 +
 +</file>
 +
 +===== Available properties =====
 +{{indexmenu>.#1}}
Print/export