Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:objects:responsefunction:methods:chop [2024/12/22 19:58] – created Maurits W. Haverkort | documentation:language_reference:objects:responsefunction:methods:chop [2024/12/22 20:03] (current) – Maurits W. Haverkort | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ### | ### | ||
| - | alligned paragraph text | + | G.Chop(epsilon) removes poles from $G$ with residue smaller than epsilon. If epsilon is not set a standard value of epsilon = 10*DBL_EPSILON is taken. |
| ### | ### | ||
| ===== Example ===== | ===== Example ===== | ||
| - | |||
| - | ### | ||
| - | description text | ||
| - | ### | ||
| ==== Input ==== | ==== Input ==== | ||
| <code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
| - | -- some example code | + | a = {10, -1,-0.5, 0, |
| + | b = { 0.1, 0.1, 0.1, 0.1, 0.2, 0.3} | ||
| + | GL = ResponseFunction.New( {a, | ||
| + | GL.Chop(0.15) | ||
| + | print(GL) | ||
| </ | </ | ||
| ==== Result ==== | ==== Result ==== | ||
| <file Quanty_Output> | <file Quanty_Output> | ||
| - | text produced as output | + | { { 10 , 1 , 1.5 } , |
| + | { 0.2 , 0.3 } , | ||
| + | type = ListOfPoles , | ||
| + | mu = 0 , | ||
| + | name = GL } | ||
| </ | </ | ||
| + | |||
| + | |||
| ===== Table of contents ===== | ===== Table of contents ===== | ||
| {{indexmenu> | {{indexmenu> | ||