def test_p_L(self, f=np.sin, x=[0, np.pi], n=11):
     """
     Tests the polynomial interpolation function on the given x values, which should return 
     exactly the given y values. The function uses the values on sin(x) default
     """
     p_L = LagrangeInterpolation(f, x, n)
     LP.test_p_l(p_L.xp, p_L.yp)
 def test_p_L(self, f = np.sin, x = [0, np.pi], n = 11):
     """
     Tests the polynomial interpolation function on the given x values, which should return 
     exactly the given y values. The function uses the values on sin(x) default
     """
     p_L = LagrangeInterpolation(f, x, n)
     LP.test_p_l(p_L.xp, p_L.yp)
 def test_p_L(self,
              xp=np.linspace(0, np.pi, 5),
              yp=np.array([np.sin(y) for y in np.linspace(0, np.pi, 5)])):
     """
     Tests the polynomial interpolation function on the given x values, which should return 
     exactly the given y values. The function uses the values on sin(x) default
     """
     LP.test_p_l(xp, yp)
 def test_p_L(self, xp = np.linspace(0,np.pi, 5), yp = np.array([np.sin(y) for y in np.linspace(0,np.pi, 5)]) ):
     """
     Tests the polynomial interpolation function on the given x values, which should return 
     exactly the given y values. The function uses the values on sin(x) default
     """
     LP.test_p_l(xp, yp)