Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
documentation:language_reference:objects:responsefunction:operations:div [2024/12/20 17:19] Maurits W. Haverkortdocumentation: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,\Gamma) = (G1(\omega,\Gamma))/2$. We can also divide a constant by a Green's function such that  +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,\Gamma) = (G1(\omega,\Gamma))/2$. For example
-### +
- +
-===== Example ===== +
- +
-### +
-description text+
 ### ###
  
 ==== 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/2)
 </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