def rightEndPoint(self):
        """
        Compute the value of Xk of each point using the
        right endpoint of each subinterval
        """
        
        # Start with an empty list
        right_list = []
        
        #attempt to create a list of Xk points using the right endpoint       
        try:
            for k in range(1,(self.n +1)):
                right_end_point = self.a + (k * self.delta_X)
                right_list.append(right_end_point)
            return right_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
        right endpoint of each subinterval
        
recipes/Python/576897_RectangleMethod/recipe-576897.py