Shunting yard algorithm and rpn solver.
< node main 'min((4 * 345), 5 ^ sqrt(2))'
> RPN: 4,345,*,5,2,sqrt,^,min
> RESULT: 9.738517742335421
NOTE:
Functions and operators are in separate files if you want to modify or add some functionality.
Related links