When you make the user input a string like "5X / ( X^2 - 5 )"
How could I make that string into an useble function, so it makes it possible to give the X any value, and then it gives the solution?
I already thought about putting it apart, and make a array of it, but how could I then make the "*" "/" chars into an operator?
The biggest challenge is to parse the string and put it into an appropriate format. I don't think using an array is very useful. It's probably better to think about the expressions, and subexpressions.
5X / ( X^2 - 5 ) is division of the two expressions 5X and X^2 - 5. 5X is multiplication of the expressions 5 and X. etc.