From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: How to execute calc commands in src blocks? Date: Tue, 11 Aug 2015 10:18:50 +0100 Message-ID: <87bneembd1.fsf@ucl.ac.uk> References: <87vbcoszsc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP5i7-0007pZ-C8 for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 05:19:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZP5i1-0001Sk-TY for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 05:19:07 -0400 Received: from mail-db3on0108.outbound.protection.outlook.com ([157.55.234.108]:22547 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP5i1-0001S8-L0 for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 05:19:01 -0400 In-Reply-To: <87vbcoszsc.fsf@gmail.com> (jenia ivlev's message of "Sun, 9 Aug 2015 21:22:27 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "jenia.ivlev" Cc: emacs-orgmode@gnu.org On Sunday, 9 Aug 2015 at 21:22, jenia.ivlev wrote: > Hello. > > I want to use calc in org src-blocks. But it doesnt always work. I've usually found that calc in org babel works best in algebraic mode as opposed to stack mode: > Here is another example where it doesn't work: > > #+BEGIN_SRC calc > [3 2] > [2 10] > '+ > #+END_SRC Try #+BEGIN_SRC calc [3,2] + [2,10] #+END_SRC instead. Stack mode is best for interactive use but really has few benefits for non-interactive use, in my experience. And I say this as a fervent HP calculator user for decades... :-) -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-34-gb911f1