Rookie question but I can't find anywhere the answer.
I need an input for example x^3-9*x
For example, I'm writing an interactive application where the user is prompted to input a symbolic expression for a function:
f=readline(prompt="A symbolic / mathematical function:")
then, the input from the console could be: x^3-9*x
I need to make the program understand that f
is a function not just characters.