How would the user be inserting the code? A textbox?
Logic wise you could have 4 text boxes and one combo box. The first text box they would enter X (using your X^2 equation), combo box select ^ (or * or /), 3rd enter 2, fourth and equals enter -4. You could then take the opposite of the combo box selection and figure out the rest using the textbox variables.
|