def multigrapher():
    legender1 = ['F2', '2', 'F4', '4', 'F6', '6', 'F10', '10']
    n_list = [2, 4, 6, 10]
    figure(1)
    p2.graph2(np.abs, n_list, -2, 2, legender1)
    legender2 = ['F13', '13', 'F20', '20']
    n_list2 = [13, 20]
    figure(2)
    p2.graph2(np.abs, n_list2, -2, 2, legender2)
def multigrapher():
    legender1 = ['F2', '2', 'F4', '4', 'F6', '6', 'F10', '10']
    n_list = [2, 4, 6, 10]
    figure(1)
    p2.graph2(np.abs, n_list, -2, 2, legender1)
    legender2 = ['F13', '13', 'F20', '20']
    n_list2 = [13, 20]
    figure(2)
    p2.graph2(np.abs, n_list2, -2, 2, legender2)
def graph2():
    n = [13, 20]
    p1.graph2(np.abs, n, -2, 2)
    plt.title('f(x) = |x| and Interpolation Points')
    plt.xlim(-2.0, 2.0)
    plt.ylim(-4.5, 5.5)
def graph1():
    n = [2, 4, 6, 10]
    p1.graph2(np.abs, n, -2, 2)
    plt.title('f(x) = |x| and Interpolation Points')
    plt.xlim(-2.0, 2.0)
    plt.ylim(0.0, 2.1)