Polynomial Expressions and Horner's Method

Some expressions, such as polynomials, use the same variable several times for their solution. For example, the expression

Ax4 + Bx3 + Cx2 + Dx + E

uses the variable x four different times. A program to calculate such an expression using RPN operations could repeatedly recall a stored copy of x from a variable.

Example:

Write a program using RPN operations for 5x4 + 2x3, then evaluate it for x = 7.