How would I take user input and convert it to a runnable equation?

40 views Asked by At

I am currently trying to make a graphing calculator in Java in which the user inputs an equation, for example, 3x^2+4x-14, which is fed into the program and graphed. How could I take any user equation and turn it into an equation in Java for a for loop to run?

I have already implemented methods that automatically detect if the user input is a viable equation, however I'm still stumped by actually taking that user input and converting it into a runnable algorithm.

0

There are 0 answers