How to use math sympy symbols in aiogram?

42 Views Asked by At

How can I use sympy’s symbols in my aiogram telegram bot’s answers like Jupiter notebook does?

For example this code:

from sympy import Symbol, Eq, sqrt

h = Symbol('h')
a = Symbol('a')

AB = sqrt(h**2 + (a/2)**2)
AB

Is this possible?

Everything I tried doesn’t work.

0

There are 0 best solutions below