Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| documentation:language_reference:objects:responsefunction:operations:len [2024/12/17 16:12] – created Maurits W. Haverkort | documentation:language_reference:objects:responsefunction:operations:len [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ### | ### | ||
| - | alligned paragraph text | + | The length operator "#" |
| ### | ### | ||
| ===== Example ===== | ===== Example ===== | ||
| - | ### | + | The script |
| - | description text | + | |
| - | ### | + | |
| ==== Input ==== | ==== Input ==== | ||
| <code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
| - | -- some example code | + | acon = {0, |
| + | bcon = { | ||
| + | Gcon = ResponseFunction.New( {acon, | ||
| + | aval = {0, | ||
| + | bval = { | ||
| + | Gval = ResponseFunction.New( {aval, | ||
| + | a0=0 | ||
| + | b0=1 | ||
| + | G = ResponseFunction.New( {{a0, | ||
| + | |||
| + | print(" | ||
| + | print(" | ||
| + | print(" | ||
| </ | </ | ||
| + | Returns | ||
| ==== Result ==== | ==== Result ==== | ||
| <file Quanty_Output> | <file Quanty_Output> | ||
| - | text produced as output | + | The lenght of Gval is 2 while it contains the elements acon and bcon |
| + | The length of G is 1 while it only contains the element {a0,b0} | ||
| + | The other elements are not indexed by a consequitive number and thus not included in the counting | ||
| </ | </ | ||