'''Instructions for Exercise 1, Chapter 6: 
plots and determination of limits

Example: 
    sin(x)**2 / (3*x**2)
'''
import numpy as np
import matplotlib.pyplot as plt
        
x1 = np.arange(-2,0,0.01)       # x-values to the left of x = 0
x2 = np.arange(0.01,2.01,0.01)   # x-values to the right of x = 0

y1 = (np.sin(x1)**2)/(3*x1**2)  # y-values to the left of x = 0
y2 = (np.sin(x2)**2)/(3*x2**2)  # y-values to the right of x = 0

plt.plot(x1,y1,x2,y2)

plt.show()