I wanted to write a program where the user can pass in the mathematical expression that they want to evaluate as a string.
So for instance, if the user enters a formula and other necessary arguments as string
sin(x**2)/x, 0, pi/2
and I want to process that as an integral with the help from math
of sympy
, how shall I do it? I know how the package sympy
can process mathematical expressions, but I don't know how to do it when the expression is a string.
Thanks for the help!