You have provided us with your current solution to a problem, but you haven't specified what that problem is. It is difficult to identify what areas might be unneccesary or wasteful in this situation.
Some inline documentation would be useful, as would some additional comments in this thread. Here are a few things that would be nice to know:
In reply to Re^3: Equation - code review
by imp
in thread Equation - code review
by kulls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |