def calculateLimitRight(self):
     self.function.execute('+')
     self.function.yLimitRight = self.function.yi
     print("{}{} {}(x) cuando x -> {} (-) {} {} {}(x) = {}\n".format(
         console.space(2), console.printLimitSymbol(),
         console.printFunctionName(self.function.name), self.function.x,
         console.printThenSymbol(), console.printLimitSymbol(),
         console.printFunctionName(self.function.name),
         self.function.yLimitRight))
    def showCoordenates(self):
        ini = self.function.x - self.range
        end = self.function.x + self.range
        print("\nCalculando {}(x) para {} hasta {}\n".format(
            console.printFunctionName(self.function.name),
            console.printEqualVariable('x', ini),
            console.printEqualVariable('x', end)))

        for n in range(ini, end+1):
            if n >= self.function.x_min:
                self.function.xi = n
                self.function.execute()
                self.coor_x.append(self.function.xi)
                self.coor_y.append(self.function.yi)
                print("{} {} {}({}) = {}".format(
                    console.printEqualVariable('x', self.function.xi),
                    console.printThenSymbol(),
                    console.printFunctionName(self.function.name), self.function.xi, self.function.yi))
 def printResult(self):
     message = ('SI' if self.is_continuous else 'No') + " es continua"
     print("\nLa funcion {} {}, cuando {}".format(
         console.printFunctionName(self.function.name),
         console.highlight(message),
         console.printEqualVariable('x', self.function.x)))
 def calculateLimit(self):
     print("\n{}Calculando el Limite de la funcion {}\n".format(
         console.space(2), console.printFunctionName(self.function.name)))
     self.calculateLimitLeft()
     self.calculateLimitRight()
 def validate(self):
     print("\nValidar si la funcion {} es continua.".format(
         console.printFunctionName(self.function.name)))
     self.calculateLimit()
     self.evaluateIsContinuous()
     self.printResult()
 def show(self):
     print("\nCuando {} {} {}(x) = {}({}) = {}".format(
         console.printEqualVariable('x', self.x), console.printThenSymbol(),
         console.printFunctionName(self.name),
         console.printFunctionName(self.name), self.x, self.y))