From 90512366cd5963af9d510cb4bb4290b385718a5b Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sat, 25 Jun 2011 15:11:08 -0700 Subject: [PATCH] adding some basic arithmetic to the library of babel --- contrib/babel/library-of-babel.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/contrib/babel/library-of-babel.org b/contrib/babel/library-of-babel.org index fea5b3f15..983d86893 100644 --- a/contrib/babel/library-of-babel.org +++ b/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