I have to make a scientific calculator. I just need to know how to take input, process it, then display it. One obvious way is using eval but if I use eval, I have to explain exactly what is the source-code behind eval doing. Can someone please tell me where to find the exact working of eval? Or suggest any algorithm for taking inputs.
The following inputs are possible: 5+6/8xsin(0.5)
or it algorithm for making it work like a simple calculator does, one input is displayed at a time and one function works at a time.