```
In [2]:
```import numpy as np
import matplotlib.pyplot as plt # import the plotting module
%matplotlib inline
# This allows us to plot in the notebook environment

Write your equation for magnetic energy in words (and Latex) here.

```
In [5]:
```thetas=np.arange(0,180,1) # makes an array of thetas from 0 to 180 at 1 degree increments.
Es=np.cos(np.radians(thetas)) # replace this with YOUR equation - this is just and EXAMPLE.
plt.plot(thetas,Es) # make a nice plot
plt.title("Write your title here")
plt.xlabel("Write your X-axis Label here")
plt.ylabel("Write your Y-axis Label here")

```
Out[5]:
```

What are you trying to do.

```
In [7]:
```# figure out thermal energy here and print it out
YOUR_NUMBER=1 # obviously this is not the real number. what is it?
print 'thermal energy is: ',YOUR_NUMBER

```
```

How does this compare with 1a?