.how to use .post fix. notation to uniquely write an arithmetic expression.

1 view
Skip to first unread message

writer

unread,
May 22, 2013, 2:41:53 PM5/22/13
to onewo...@googlegroups.com
.title. .how to use .post fix. arithmetic notation to uniquely write
an arithmetic expression. the following is an arithmetic expression. a
plus b minus c minus d multiplied by e. without the use of parentheses
or operator precedence of multiply over plus and minus it is not
possible to uniquely parse or evaluate an arithmetic expression like
this. for example one might multiply d by e first and then compute the
rest after that. or else one might compute a plus b minus c minus d
and then multiply the result by e. these are at least two different
ways of interpreting the same arithmetic expression given above. the
notation used above is called .in fix. notation. where the arithmetic
operator is in the middle of the two operands it operates on. if the
arithmetic operator follows the two operands it operates on the
arithmetic expression resulting from the rule would be called a .post
fix. arithmetic expression. for example the following is an arithmetic
expression in .post fix. notation. a b plus c d minus minus e
multiply. this post fix notation uniquely specifies the computation as
follows. a and b are added. then the result is put aside as result1.
then d is subtracted from c to get result2. then result2 is subtracted
from result1 to get result3. then result3 is multiplied with e to get
the final result. there is only one way to perform this sequence of
computations. therefore the .post fix. notation uniquely specifies the
computation sequence for the given .post fix. arithmetic expression.
this example showed you how to use .post fix. arithmetic notation to
uniquely write an arithmetic expression. .end of
message. .when. .date and time. 22 may 2013 wed am
1135am. .from. .where. position. san jose public library. 150 east san
fernando street. san jose. california. usa. ca 95112. .from. .who.
h.s.nair111 at gmail.com .to. .address. usenet newsgroup
soc.culture.indian at http colon slash slash groups.google.com slash
group slash soc.culture.indian slash .also posted to my group
oneworld01 at http colon slash slash groups.google.com slash group
slash oneworld01 slash. .signature is post fix notation simplifies
arithmetic expressions is signature.
Reply all
Reply to author
Forward
0 new messages