emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to execute calc commands in src blocks?


From: Eric S Fraga
Subject: Re: [O] How to execute calc commands in src blocks?
Date: Tue, 11 Aug 2015 10:18:50 +0100
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

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 <mumble> decades... :-)

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-34-gb911f1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]