From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Yet another literate programming application Date: Mon, 29 Jul 2013 10:57:01 -0600 Message-ID: <87bo5lnw2q.fsf@gmail.com> References: <87k3k9o3vu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3qnO-00028i-JM for emacs-orgmode@gnu.org; Mon, 29 Jul 2013 12:59:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3qnJ-0006dI-5O for emacs-orgmode@gnu.org; Mon, 29 Jul 2013 12:59:42 -0400 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:56935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3qnI-0006bx-S2 for emacs-orgmode@gnu.org; Mon, 29 Jul 2013 12:59:37 -0400 Received: by mail-pd0-f175.google.com with SMTP id 5so369269pdd.20 for ; Mon, 29 Jul 2013 09:59:35 -0700 (PDT) In-Reply-To: (Alan Schmitt's message of "Mon, 29 Jul 2013 18:30:54 +0200") 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: Alan Schmitt Cc: emacs-orgmode --=-=-= Content-Type: text/plain Alan Schmitt writes: > schulte.eric@gmail.com writes: > >> Alan Schmitt writes: >> >>> Or rather, I should say a literate algebra and calculating application: >>> http://calca.io/ >>> >> >> If this is appealing, it may be worth checking out the "Embedded Mode" >> of Emacs calc [1]. From what I can tell on the calc.io website, Emacs >> calc provides the same functionality, but Emacs calc has the benefits of >> (1) it is open source meaning you can confirm calculations and your >> answers (in my opinion a must for any peer reviewed publication), and >> (2) it may be embedded in *any* type of file. > > Embedded calc mode is amazing, thanks for the link! It does not seem as > intuitive to work with equations (I've tried doing the Functions and > Solving Equations examples in calc), Very cool, thanks for sharing. I would note, that one nice thing about embedded mode is that there is no need for the #+begin/end_src calc blocks, rather the formulas may be placed directly in the Org-mode file. So to re-write a small portion of your previous example... --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=calc-examples.org #+Title: Emacs Calc Embedded Mode Examples * Temperature Conversion (solving equations) Conversion from Celsius to Fahrenheit involves multiplication by 1.8 and the addition of 32 as shown below. eq := f = 1.8 c + 32 Solving for Celsius from Fahrenheit is then. ceq := solve(eq, c) => So, if we know that water boils at 100\deg Celsius, we can find the boiling point of water in Fahrenheit. subst(eq, c, 100) => Or if we know that paper burns at 451\deg Fahrenheit, we can find the burning point of paper in Celsius. subst(ceq, f, 451) => --=-=-= Content-Type: text/plain Using embedded mode is still fairly awkward for me. I would benefit greatly from some sort of quick reference card explaining the key bindings and maybe an easier way to switch to/from embedded mode. > and there are funny results with spaces in names. If someone knows how > to do the even/odd example in calc, please let me know. Here is what I > got so far: > I'm not clear on how the even/odd example works in calc, could you share a link to the specific manual page you're referencing? I've long felt that calc would be a *very* powerful tool, if only I could climb the learning curve. Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--