예제 #1
0
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))
예제 #2
0
 def cdf(self):
     return integrate(self.pdf)