Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:language_reference:objects:responsefunction:functions:calculatehybridizationfunction [2024/12/24 00:14] – Maurits W. Haverkort | documentation:language_reference:objects:responsefunction:functions:calculatehybridizationfunction [2024/12/24 00:19] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 20: | Line 20: | ||
### | ### | ||
- | description text | + | The example below uses some arbitrary definition for $G_0$ and $\Sigma$. Examples where these functions are used can be found in the tutorials. |
### | ### | ||
==== Input ==== | ==== Input ==== | ||
<code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
- | -- some example code | + | a = {0, 0, -2,0,2} |
+ | b = { | ||
+ | G0 = ResponseFunction.New( { a, b, mu=0, type=" | ||
+ | |||
+ | a = {0,0,0,0} | ||
+ | b = {0.1, | ||
+ | Sigma = ResponseFunction.New( { a, b, mu=0, type=" | ||
+ | |||
+ | GHyb = ResponseFunction.CalculateHybridizationFunction(G0, | ||
+ | |||
+ | print(" | ||
+ | print(G0) | ||
+ | print(" | ||
+ | print(Sigma) | ||
+ | print(" | ||
+ | print(GHyb) | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | The non interacting Green' |
+ | { { 0 , 0 , -2 , 0 , 2 } , | ||
+ | { 1 , 1 , 1 , 1 } , | ||
+ | name = G0 , | ||
+ | mu = 0 , | ||
+ | type = And } | ||
+ | The self energy | ||
+ | { { 0 , 0 , 0 , 0 } , | ||
+ | { 0.1 , 0.1 , 0.1 } , | ||
+ | name = Sigma , | ||
+ | mu = 0 , | ||
+ | type = Tri } | ||
+ | The bath Green' | ||
+ | { { 0 , 0 , -2.0049999999223 , -0.16180339887499 , -0.14261254104408 , -0.14010864678943 , -0.061803398874989 , -0.0024961056676115 , 0.0024961056676115 , 0.061803398874989 , 0.14010864678943 , 0.14261254104408 , 0.16180339887499 , 2.0049999999223 } , | ||
+ | { 1 , 0.99874921790792 , 0.37174803446018 , 0.0238150684481 , 0.026242558358305 , 0.60150095500755 , 0.03527279934937 , 0.03527279934937 , 0.60150095500755 , 0.026242558358305 , 0.0238150684481 , 0.37174803446018 , 0.99874921790792 } , | ||
+ | name = GBath , | ||
+ | mu = 0 , | ||
+ | type = And } | ||
</ | </ | ||