Alan Schmitt <alan.schm...@polytechnique.org> writes: > schulte.e...@gmail.com writes: > >> Alan Schmitt <alan.schm...@polytechnique.org> 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...
#+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) =>
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