X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=doc%2Frpntutorial.pod;h=34b54ea0ea9337af688c1b32a0b8633f63226b6e;hb=d9822df7ed5e8122cf3a62e4e99678e94007f504;hp=dd86c68ca5036c4e5f46e1681411303aff77f930;hpb=91b2f1022a195d008d818f283690ef63a00fd79c;p=pkg-rrdtool.git diff --git a/doc/rpntutorial.pod b/doc/rpntutorial.pod index dd86c68..34b54ea 100644 --- a/doc/rpntutorial.pod +++ b/doc/rpntutorial.pod @@ -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": @@ -160,7 +159,7 @@ uses the LE and DIV operators. Answer 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 Exercise 3: