Hi, all:
[Caveat emptor: All that follows is thoroughly tongue-in-cheek, to try and cheer up the Forum a little. V.]
There's been a number of recent posts praising how RPN makes the process of evaluating an algebraical expression easy and intuitive, without having to deal with parentheses and/or implicit rules of precedence, etc.
Well, let's put it to test. Suppose we're asked to evaluate these
expressions:
0.5 + 0.2 * 0.3Here's how I would do it algebraically:
and
0.312 * 0.437 + 0.251
Using the distributive property of addition over multiplication,For a more complicated test, let's suppose we're asked to
also known as the distributive law of sum: a + b*c = (a+b)*(a+c):0.5 + 0.2 * 0.3 =
= (0.5 + 0.2) * (0.5 + 0.3)
= 0.7 * 0.8
= 0.56Similarly for the second one:
0.312 * 0.437 + 0.251 =
= (0.312 + 0.251) * (0.437 + 0.251)
= 0.563 * 0.688
= 0.387344
evaluate the following expression:
(2+1/4)^(3/2)
Here's how I would do it algebraically:
Using the rule of exponents: (a+b)^c = c*(a+b):What ? You don't like these algebraically obtained values of mine ? Well, let's see if RPN gets you any better results. :-)(2+1/4)^(3/2) =
= (3/2) * (2+1/4)
= (3/2) * (9/4)
= (3*9) / (2*4)
= 27/8
Best regards from V.
Edited: 28 Mar 2006, 6:18 a.m.