Differences

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

Link to this comparison view

documentation:language_reference:objects:responsefunction:operations:mul [2024/12/17 16:12] – created Maurits W. Haverkortdocumentation: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,\Gamma) = (G1(\omega,\Gamma))*0.5$. For example
 ### ###
  
 ==== Input ==== ==== Input ====
 <code Quanty Example.Quanty> <code Quanty Example.Quanty>
--- some example code+a = {0, -1,-0.5, 0,   0.5,   1, 1.5} 
 +b = {  0.2, 0.4, 0.2, 0.4, 0.6, 0.2} 
 +G = ResponseFunction.New( {a,b,mu=0,type="ListOfPoles", name="G"} ) 
 + 
 +print(G*0.5)
 </code> </code>
  
 ==== 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 }
 </file> </file>
  
Print/export