from numpy import arange
import math
import matplotlib.pyplot as plot

def f(x): 
    return math.sin(x)

xs = arange(-5, 6, 0.1)
ys = [] 

for x in xs: 
     ys.append(f(x)) 

plot.plot(xs, ys) 
plot.show()