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.