emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to execute calc commands in src blocks?
@ 2015-08-10  1:22 jenia.ivlev
  2015-08-11  9:18 ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: jenia.ivlev @ 2015-08-10  1:22 UTC (permalink / raw)
  To: emacs-orgmode

Hello.

I want to use calc in org src-blocks. But it doesnt always work.
Here is an example that does work:

  #+BEGIN_SRC calc
  3
  2
  '+
  #+END_SRC

  #+RESULTS:
  6

Here is another example where it doesn't work:

  #+BEGIN_SRC calc
  [3 2]
  [2 10]
  '+
  #+END_SRC

This doesn't work at all. It tells me "Invalid data object encoutered".


Can someone please tell me how to make the second exaple work? 
And also, how do I assign a value to a variable maybe someone knows?

Thanks
Jenia

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-11  9:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-10  1:22 How to execute calc commands in src blocks? jenia.ivlev
2015-08-11  9:18 ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).