BUT they connect through $\mathrm{Im} W (\omega) = \frac1\pi \mathrm{Im} \Sigma ( \epsilon - \omega )$.
Using a multi-pole representation for $\Sigma^{GW}$:
\begin{equation} \mathrm{Im} W (\omega) = \frac1\pi \mathrm{Im} \Sigma ( \epsilon - \omega ) \end{equation}\begin{equation} W (\tau) = - i \lambda \bigl[ e^{ i \omega_p \tau } \theta ( - \tau ) + e^{ - i \omega_p \tau } \theta ( \tau ) \bigr] \end{equation}To be continued... --> https://github.com/teoguso/SF.git
Python + matplotlib plotting library:
QUESTION: Who knows what Git is?
State of the art for distributed version control
Fortran, Python, Latex, Bash, ...
In [ ]:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
with plt.xkcd():
plt.rcParams['figure.figsize'] = (6., 4.)
x = np.linspace(-5, 5, 50)
gauss = np.exp(-(x**2) / 2)/np.sqrt(2 * np.pi)
ax = plt.subplot(111)
ax.plot(x, gauss, label="Best curve ever")
cdf = np.array([np.trapz(gauss[:i], x[:i]) for i, _ in enumerate(gauss)])
plt.plot(x, cdf, label="Bestest curve ever")
plt.xlim(-3, 3)
ax.set_xticks([])
ax.set_yticks([])
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
plt.xlabel('most exciting independent variable')
plt.ylabel("I'm not trolling")
plt.legend(loc='best')
plt.annotate("I CAN ALSO\n DO MATH:\n"+
" "+
r"$\frac{e^{-\frac{x^2}{2}}}{\sqrt{2\pi}}$",
xy=(0.1, 0.4), arrowprops=dict(arrowstyle='->'), xytext=(2, 0.6))
fname = "./graphics/xkcd1.png"
plt.savefig(fname, dpi=300)
In [1]:
"""
Simple demo of a scatter plot.
"""
# import numpy as np
# import matplotlib.pyplot as plt
N = 50
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
area = np.pi * (15 * np.random.rand(N))**2 # 0 to 15 point radiuses
plt.scatter(x, y, s=area, c=colors, alpha=0.5)
plt.savefig("./graphics/scatter_demo.png", dpi=200)
In [8]:
"""
This shows an example of the "fivethirtyeight" styling, which
tries to replicate the styles from FiveThirtyEight.com.
"""
from matplotlib import pyplot as plt
import numpy as np
x = np.linspace(0, 10)
with plt.style.context('fivethirtyeight'):
plt.plot(x, np.sin(x) + x + np.random.randn(50))
plt.plot(x, np.sin(x) + 0.5 * x + np.random.randn(50))
plt.plot(x, np.sin(x) + 2 * x + np.random.randn(50))
plt.savefig("./graphics/fivethirtyeight_demo.png", dpi=200)
Interactive scientific computing environment
Interactive documents that combine
Executable code
Rich-text elements (Markdown + HTML)
Write
\begin{equation}
\Sigma (\omega) = \int \, d\omega' ...
\end{equation}
and get \begin{equation} \Sigma (\omega) = \int \, d\omega' ... \end{equation}
Also remember to convert to pdf!
Jupyter - Great for:
Data analysis
Reports
(Works best with Python)