def integral(bot, update): try: ans = calculus.integrate(update.message.text) except Exception as e: _something_wrong(bot, update) print(e) else: bot.sendMessage(chat_id=update.message.chat_id, text='Integration answer: {}'.format(ans))
def cdf(self): return integrate(self.pdf)