Code

Imported upstream version 1.4.8
[pkg-rrdtool.git] / doc / rpntutorial.1
index 83734a82176c5b82f03fb4951f82aa7ac0da36dd..b58314f655b808f163337c7c1af86a684aae7929 100644 (file)
@@ -1,15 +1,7 @@
-.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
+.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16)
 .\"
 .\" Standard preamble:
 .\" ========================================================================
-.de Sh \" Subsection heading
-.br
-.if t .Sp
-.ne 5
-.PP
-\fB\\$1\fR
-.PP
-..
 .de Sp \" Vertical space (when we can't use .PP)
 .if t .sp .5v
 .if n .sp
 .    ds R" ''
 'br\}
 .\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
+.\"
 .\" If the F register is turned on, we'll generate index entries on stderr for
-.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
 .\" entries marked with X<> in POD.  Of course, you'll have to process the
 .\" output yourself in some meaningful fashion.
-.if \nF \{\
+.ie \nF \{\
 .    de IX
 .    tm Index:\\$1\t\\n%\t"\\$2"
 ..
 .    nr % 0
 .    rr F
 .\}
-.\"
-.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
-.\" way too many mistakes in technical documents.
-.hy 0
-.if n .na
+.el \{\
+.    de IX
+..
+.\}
 .\"
 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
 .\" ========================================================================
 .\"
 .IX Title "RPNTUTORIAL 1"
-.TH RPNTUTORIAL 1 "2008-02-17" "1.2.27" "rrdtool"
+.TH RPNTUTORIAL 1 "2013-05-23" "1.4.8" "rrdtool"
+.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
 .SH "NAME"
 rpntutorial \- Reading RRDtool RPN Expressions by Steve Rader
 .SH "DESCRIPTION"
@@ -181,7 +180,7 @@ important to be able to read \s-1IF\s0 operators along with the \s-1LT\s0, \s-1L
 .IX Header "Some Examples"
 While compound expressions can look overly complex, they can be
 considered elegantly simple.  To quickly comprehend \s-1RPN\s0 expressions,
-you must know the the algorithm for evaluating \s-1RPN\s0 expressions:
+you must know the algorithm for evaluating \s-1RPN\s0 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.
@@ -219,9 +218,9 @@ multiplication operator:
 .PP
 .Vb 4
 \& 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
 .Ve
 .PP
 Now let's go back to the first example of multiple logic operators,
@@ -239,7 +238,7 @@ with \*(L"A\*(R":
 .Ve
 .PP
 read \*(L"if A then 10 else input\*(R".  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:
 .PP
 .Vb 1
@@ -314,7 +313,7 @@ Answer 2:
 .PP
 .Vb 2
 \&    if (input <= 56000/8 ) { input*8 } else { 56000 }
-\&    input,56000,8,DIV,LT,input,8,*,56000,IF
+\&    input,56000,8,DIV,LE,input,8,*,56000,IF
 .Ve
 .PP
 Exercise 3: