diff --git a/doc/rpntutorial.pod b/doc/rpntutorial.pod
index b830f2700cc3a55bf2c77241cdb801a7c60c95aa..34b54ea0ea9337af688c1b32a0b8633f63226b6e 100644 (file)
--- a/doc/rpntutorial.pod
+++ b/doc/rpntutorial.pod
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":
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 again 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
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: