```
%pylab inline
```

    Populating the interactive namespace from numpy and matplotlib



```
from sympy import *
```


```
init_printing()
```


```
g = symbols('gamma')
w = symbols('omega')
w0 = symbols('omega_0')
dn = symbols('delta_n')
```


```
subs = {dn:1, w0:115, g:2}
```


```
n_real = 1 + dn*(2*(w0 - w)*g)/((w0 - w)**2 + g**2)
```


```
n_imag = dn*(g**2)/((w0-w)**2 + g**2)
```


```
ng = n_real + w*diff(n_real,w)
```


```
plot(n_real.subs(subs),(w,100,125))
plot(n_imag.subs(subs),(w,100,125))
plot(ng.subs(subs),(w,100,125))
```


```

```

53a68e3ce80cab0cb7cb0021f0a7cdeaaefb9df6
ipynb
Jupyter Notebook
Slow Light in Rb.ipynb
Shannon2673/LabNotebooks
6eb68dc6d20484ad6d5199673be5dae70d565cfc
MIT
2017-01-25T10:24:09.000Z
2020-09-11T04:30:23.000Z
Slow Light in Rb.ipynb
Shannon2673/LabNotebooks
6eb68dc6d20484ad6d5199673be5dae70d565cfc
MIT
2021-06-30T20:40:41.000Z
2021-06-30T20:40:41.000Z
Slow Light in Rb.ipynb
Shannon2673/LabNotebooks
6eb68dc6d20484ad6d5199673be5dae70d565cfc
MIT
2021-06-14T22:52:03.000Z
2021-06-14T22:52:03.000Z
Qwen/Qwen-72B
1. YES
2. YES