emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm)
To: emacs-orgmode@gnu.org
Cc: Jay Belanger <jay.p.belanger@gmail.com>
Subject: Unit conversions and symbolic mathematics with Babel
Date: Wed, 03 Sep 2014 08:54:19 +0200	[thread overview]
Message-ID: <87vbp5urc4.fsf@vsl28t2g.ww011> (raw)

Hello Org,

for some engineering most often I need estimations with unit
conversions, Emacs Calc is perfect for this.

When it comes to reporting and documentation I'd like to do it with
org-mode, of course.  For numerical stuff and visualisation purposes I'm
using already R and TikZ. But for unit conversions and symbolic maths
I'm in a bind when trying to do this with free programs.

- R :: Do you have experience with a units packages under the R-project?
  What I've seen so far is not so reassuring...

- Maxima :: I think there is a nice and intuitive units package for
  maxima.  But this would mean learning an additional tool and mentally
  switching between both within one document.

- Calc :: I'd prefer to do it with Calc but the Babel interface is
  (yet?) restricted

  For example, I can define functions and do some unit conversions:

    #+BEGIN_SRC emacs-lisp
    (defmath cvun(a b)
	  (math-convert-units a b))
    #+END_SRC

    #+RESULTS:
    : calcFunc-cvun

    #+BEGIN_SRC calc :var L1 = "5 mm" 
    cvun( L1, m)
    #+END_SRC    

    #+RESULTS:
    : 5e-3 m

  But what is missing is to assign variables within a source block
  
    #+BEGIN_SRC calc :var L1 = "5 mm" 
    L2 := cvun( L1, m)
    #+END_SRC    
  
  Unfortunately this is not working.  Do you have an idea how to
  implement this?

- Are you using (better) alternatives?

Thanks for your insights

       Dieter
-- 
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany

             reply	other threads:[~2014-09-03  7:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-03  6:54 H. Dieter Wilhelm [this message]
2014-09-03  7:19 ` Unit conversions and symbolic mathematics with Babel Alan Schmitt
2014-09-03  7:32 ` Eric Abrahamsen
2014-09-03 13:18 ` Brett Viren

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=87vbp5urc4.fsf@vsl28t2g.ww011 \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=jay.p.belanger@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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