yet another try to get the rpn example right ... #246
[rrdtool.git] / doc / rpntutorial.pod
index b3beac1..0ab3131 100644 (file)
@@ -55,7 +55,7 @@ GT, GE and EQ operators.
 
 While compound expressions can look overly complex, they can be
 considered elegantly simple.  To quickly comprehend RPN expressions,
-you must know the the algorithm for evaluating RPN expressions:
+you must know the algorithm for evaluating RPN expressions:
 iterate searches from the left to the right looking for an operator.
 When it's found, apply that operator by popping the operator and some
 number of values (and by definition, not operators) off the stack.
@@ -86,10 +86,9 @@ Let's read a complex RPN expression that also has the traditional
 multiplication operator:
 
  1) 128,8,*,7000,GT,7000,128,8,*,IF  eval 128,8,*       result is 1024
- 2) 1024,7000,GT,7000,128,8,*,IF     eval 1024,7000,GT  result is 0
- 3) 0,128,8,*,IF                     eval 128,8,*       result is 1024
- 4) 0,7000,1024,IF                                      result is 1024
-
+ 2) 1024   ,7000,GT,7000,128,8,*,IF  eval 1024,7000,GT  result is 0
+ 3) 0,              7000,128,8,*,IF  eval 128,8,*       result is 1024
+ 4) 0,              7000,1024,   IF                     result is 1024
 
 Now let's go back to the first example of multiple logic operators,
 but replace the value 20 with the variable "input":
@@ -102,7 +101,7 @@ with "A":
  2) A,10,input,IF            eval is A,10,input,IF
 
 read "if A then 10 else input".  Now replace A with it's verbose
-description againg and--voila!--you have a easily readable description
+description again and--voila!--you have an easily readable description
 of the expression:
 
  if input > 10 then 10 else input