Permalink
Browse files

Add math examples

  • Loading branch information...
1 parent 99c9c2e commit b6b6604f1b83f621e638fa99dbbcbfe50580d0c5 @singpolyma committed Mar 17, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 examples/math.rpnr
View
@@ -0,0 +1,11 @@
+# Just do some basic math stuff
+1 1 + nil :puts
+
+factorial 'n'
+ n 1 ==
+ 1
+ '' factorial n 1 - :call n * :lambda ,
+ :if
+:lambda =
+
+factorial 5 :call nil :puts

0 comments on commit b6b6604

Please sign in to comment.