I have been thinking of making a graphing calculator for practice. However, I do not know how to assign to a variable an expression. What I exactly mean is:
let's say x is a variable, and y a function of x. I can just define the function inside the code, but then, I'd have to change change the source code every time I want to change the function I want to plot. What I want to do is to be able to define y as a function of x through a GUI... I believe I should use JTextField class, but I was wondering if someone could give more accurate direction.
thanks in advance!