GitLab system status is available here and here

Commit e67a85bf authored by Ethan Yeung's avatar Ethan Yeung
Browse files

session 7 prompt for coding journal 2

parent 5318fb21
%% Cell type:code id:a911dcf3 tags:
``` python
import matplotlib
import matplotlib.pyplot as plt
```
%% Cell type:code id:a70804ec tags:
``` python
import numpy as np
x = np.linspace(0, 1, 100)
```
%% Cell type:code id:142cf2e5 tags:
``` python
import math
def e_to_the_power_of(x):
return math.exp(x)
```
%% Cell type:code id:b98db233 tags:
``` python
y = []
for i in x:
y.append(e_to_the_power_of(i))
```
%% Cell type:code id:2247b94f tags:
``` python
fig = plt.figure()
ax1 = fig.add_subplot(111)
ax1.set_xlabel("Time [milliseconds]")
ax1.set_ylabel("Awesomeness")
plt.plot(x, y)
plt.savefig("cj2-7.pdf")
plt.show()
```
%% Output
%% Cell type:code id:7017d73a tags:
``` python
```
File added
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment