I'm struggling to find a proper answer to the following question. How to convert a equation (including complex operators like summation) into RPN?
Example power series:
P(x)=$\sum^\infty_{n=0}a_n(x-x_0)^n$
I know how to write the equation within the summation, but the summation take 3 operants (plus variable assignment).
$x$ $x_0$ $-$ $n$ $pow$ $a_n$ $*$
In RPN, you affectively have a "stack" of operands. Each new entry removes however many operands it needs from the stack, and places its result back on the stack.
Every operator has to have a known number of operands, but as long as that is true, the RPN is straight forward to interpret.
Understanding $\sum$ to be a quadrary operator, whose first operand is the expression to be summed (which must be a function of an indexing variable), the second is the index variable, the third is the lower limit and the fourth is the upper limit.
In this scheme, it is not the summation that gives trouble. Instead, "$a_n$" is the questionable term, as it must somehow express different values for each $n$. But passing over that, the RPN would be