Differences
This shows you the differences between two versions of the page.
documentation:language_reference:objects:responsefunction:operations:mul [2024/12/17 16:12] – created Maurits W. Haverkort | documentation:language_reference:objects:responsefunction:operations:mul [2024/12/22 15:59] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 2: | Line 2: | ||
====== Mul ====== | ====== Mul ====== | ||
- | ### | ||
- | alligned paragraph text | ||
- | ### | ||
- | |||
- | ===== Example ===== | ||
### | ### | ||
- | description text | + | We can divide a response function by a double and scale the size of the response function, i.e. when $G2 = G1*0.5)$ then $G2(\omega, |
### | ### | ||
==== 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*0.5) | ||
</ | </ | ||
==== 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 } | ||
</ | </ | ||