I am making a project in Django which takes an equation having some variables and then perform mathematical function on it using python.
Right now, I have CharField as an input field for entering equation but the problem is that it returns string which I can't use for calculation purpose.
For eg. The user inputs an equation $x^2 + $y^2. Now I want to substitute value of x and y but the equation is in the form of string and I cannot calculate the value.
So, is there any input field in Django which can take equation in a particular form so that I can input value in those variables?