emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Heiko Schmidt <Heiko.Schmidt@webbedtables.de>
To: emacs-orgmode@gnu.org
Subject: Re: ob-calc duplicate stack-element issue
Date: Sun, 15 Mar 2020 16:08:56 +0100	[thread overview]
Message-ID: <5a3648cf-7eb4-e5d6-a4af-2848ff7b918e@webbedtables.de> (raw)
In-Reply-To: <87imj5n7op.fsf@ucl.ac.uk>

Several times I made exactly similar experiences with ob-calc as you 
mentioned (units, do what I want), nevertheless I decided to be 
dependent of orgmode and I'd really appreciate to use ob-calc for 
"literate calculation".

"Embedded calc" seems interesting but I refuse using more tools or modes 
because they always tend to create open loops which I'm having enough.

I think ob-calc is underestimated in the org-babel world - there is only 
a few documentation on it. It could be of more value to document 

On 15.03.20 13:06, Eric S Fraga wrote:
> On Sunday, 15 Mar 2020 at 11:46, Heiko Schmidt wrote:
>> - I want to use ob-calc to do some "literate calculation" with the
>>     purpose to document what I thought at the time I wrote it.
> I have never managed to get ob-calc to do what I want either so I cannot
> help you directly with your query.  Instead, I use embedded calc mode,
> along these lines:
> --8<---------------cut here---------------start------------->8---
> Number of cars (PKW) in germany:
> ncars := 45000000.
> Yearly mileage in [km/y]
> mileage := 15000 km/y
> Calculate amount of complete km per year
> mileage ncars => 675000000000. km / y
> --8<---------------cut here---------------end--------------->8---
> You have to activate embedded mode.  By default, calc will look for
> expressions surrounded by empty lines.  The := operator assigns values
> to variables and the => operator says to show the result here instead of
> replacing the expression with the result.
> As an aside, calc understands units which is quite nice...
> HTH,
> eric

  reply	other threads:[~2020-03-15 15:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-15 10:46 ob-calc duplicate stack-element issue Heiko Schmidt
2020-03-15 12:06 ` Eric S Fraga
2020-03-15 15:08   ` Heiko Schmidt [this message]
2020-03-18 14:47 ` Marco Wahl
2020-03-18 15:50   ` Eric S Fraga
2020-03-18 16:23     ` Marco Wahl
2020-03-18 16:41       ` Eric S Fraga
2020-04-06  4:39     ` Heiko Schmidt
2020-04-06  4:16   ` Heiko Schmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a3648cf-7eb4-e5d6-a4af-2848ff7b918e@webbedtables.de \
    --to=heiko.schmidt@webbedtables.de \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).