TDT4109/Exercise 10/2.py

8 lines
182 B
Python
Raw Permalink Normal View History

2020-11-10 23:56:21 +01:00
from math import sin
import matplotlib.pyplot as plt
x_verdier = [x/10 for x in range(301)]
y_verdier = [sin(x) for x in x_verdier]
plt.plot(x_verdier, y_verdier, c='r')
plt.show()