Ver Fonte

adding some basic arithmetic to the library of babel

Eric Schulte há 13 anos atrás
pai
commit
90512366cd
1 ficheiros alterados com 21 adições e 0 exclusões
  1. 21 0
      contrib/babel/library-of-babel.org

+ 21 - 0
contrib/babel/library-of-babel.org

@@ -331,6 +331,27 @@ a
 a + b
 #+end_src
 
+** Arithmetic
+#+source: lob-add
+#+begin_src emacs-lisp :var a=0 :var b=0
+  (+ a b)
+#+end_src
+
+#+source: lob-minus
+#+begin_src emacs-lisp :var a=0 :var b=0
+  (- a b)
+#+end_src
+
+#+source: lob-times
+#+begin_src emacs-lisp :var a=0 :var b=0
+  (* a b)
+#+end_src
+
+#+source: lob-div
+#+begin_src emacs-lisp :var a=0 :var b=0
+  (/ a b)
+#+end_src
+
 * GANTT Charts
 
 The =elispgantt= source block was sent to the mailing list by Eric