def midPoint(self):
        """
        Compute the value of Xk of each point using the midPoint
        of each subinterval
        """

        # Start with an empty list
        mid_list = []

        #attempt to create a list of Xk points using the midPoint        
        try:
            for k in range(1,self.n + 1):
                mid_point = self.a + ((k - 1/2.0)* self.delta_X)
                mid_list.append(mid_point)
            return mid_list
        
        #Raise TypeError if input is not numerical
        except TypeError:
            print "\n<The entered value is not a number"

        Compute the value of Xk of each point using the midPoint
        of each subinterval
        
recipes/Python/576897_RectangleMethod/recipe-576897.py