Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
documentation:language_reference:objects:responsefunction:operations:div [2024/12/20 17:19] – Maurits W. Haverkort | documentation:language_reference:objects:responsefunction:operations:div [2024/12/20 17:24] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 3: | Line 3: | ||
### | ### | ||
- | We can divide a response function by a double and scale the size of the response function, i.e. when $G2 = G1/2)$ then $G2(\omega, | + | We can divide a response function by a double and scale the size of the response function, i.e. when $G2 = G1/2)$ then $G2(\omega, |
- | ### | + | |
- | + | ||
- | ===== Example ===== | + | |
- | + | ||
- | ### | + | |
- | description text | + | |
### | ### | ||
==== Input ==== | ==== Input ==== | ||
<code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
- | -- some example code | + | a = {0, -1,-0.5, 0, |
+ | b = { 0.2, 0.4, 0.2, 0.4, 0.6, 0.2} | ||
+ | G = ResponseFunction.New( {a, | ||
+ | |||
+ | print(G/2) | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | { { 0 , -1 , -0.5 , 0 , 0.5 , 1 , 1.5 } , |
+ | { 0.1 , 0.2 , 0.1 , 0.2 , 0.3 , 0.1 } , | ||
+ | mu = 0 , | ||
+ | type = ListOfPoles , | ||
+ | name = G } | ||
</ | </ | ||