Re: Multiple calc commands with orgbabel

2021-05-07 Thread Bastien
Tom Gillespie writes: > Here's a patch to make it official. :) Applied in master, thanks! -- Bastien

Re: Multiple calc commands with orgbabel

2021-05-07 Thread Tom Gillespie
Hi Bastien, Here's a patch to make it official. :) Tom From 3a61289e8fa4442f6d340138dcb67b950e980212 Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Thu, 6 May 2021 23:52:21 -0700 Subject: [PATCH] lisp/ob-calc.el: Add Tom Gillespie as the maintainer * lisp/ob-calc.el: Add Tom Gillespie as

Re: Multiple calc commands with orgbabel

2021-05-06 Thread Bastien
Hi Tom, that's really kind of you! Thanks a lot. If other people share the last name of original authors of ob-* files, please raise your voice and ask for your share :) Best, -- Bastien

Re: Multiple calc commands with orgbabel

2021-05-06 Thread Tom Gillespie
Hi Bastien, Given the short length of the file, the fact that I now have a fairly good idea of how it works, and the fact that I share a last name with the original author of calc, I would be happy to. I'll hunt down the steps you mentioned for becoming an ob- maintainer and ping back when

Re: Multiple calc commands with orgbabel

2021-05-06 Thread Bastien
Hi Tom, Tom Gillespie writes: > Here is a quick and dirty implementation that more or less does what > you want (I think). Mandatory question: would you like to be ob-calc.el maintainer? -- Bastien

Re: Multiple calc commands with orgbabel

2021-05-05 Thread pietru
> Sent: Thursday, May 06, 2021 at 4:39 AM > From: "Eric S Fraga" > To: "Matt Price" > Cc: pie...@caramail.com, "Org Mode List" > Subject: Re: Multiple calc commands with orgbabel > > On Wednesday, 5 May 2021 at 11:11, Matt Price wrote: > &g

Re: Multiple calc commands with orgbabel

2021-05-05 Thread Tom Gillespie
Here is a quick and dirty implementation that more or less does what you want (I think). The if t would probably need to be replaced by a value that corresponded to an option that indicated that ob-calc should resolve all expressions on the stack. This isn't really an issue of return value, it is

Re: Multiple calc commands with orgbabel

2021-05-05 Thread Tom Gillespie
lify((1 + 2 i) (3 + 4 i)) => > > simplify(5 + i^2 + i - 8 i) => > > simplify((1, 2) + (3, 4)) => > > simplify((1, 2) (3, 4)) => > > #+end_src > > > > Sent: Thursday, May 06, 2021 at 3:11 AM > From: "Matt Price" > To: "Org Mode Li

Re: Multiple calc commands with orgbabel

2021-05-05 Thread Eric S Fraga
On Wednesday, 5 May 2021 at 11:11, Matt Price wrote: > Can you explain how you get calc embedded mode working in org? I have > never used it and it sounds interesting, but I don't understand what > hte delimiters are. Sure. Here is a mini-tutorial! :-) I recently gave an interactive talk on

Re: Multiple calc commands with orgbabel

2021-05-05 Thread pietru
AM From: "Matt Price" To: "Org Mode List" Cc: pie...@caramail.com Subject: Re: Multiple calc commands with orgbabel Can you explain how you get calc embedded mode working in org? I have never used it and it sounds interesting, but I don't understand what hte delimiters are.   

Re: Multiple calc commands with orgbabel

2021-05-05 Thread Matt Price
Can you explain how you get calc embedded mode working in org? I have never used it and it sounds interesting, but I don't understand what hte delimiters are. On Wed, May 5, 2021 at 2:35 AM Eric S Fraga wrote: > On Wednesday, 5 May 2021 at 07:46, pie...@caramail.com wrote: > > Have been trying

Re: Multiple calc commands with orgbabel

2021-05-05 Thread pietru
> Sent: Wednesday, May 05, 2021 at 7:59 PM > From: "Eric S Fraga" > To: pie...@caramail.com > Cc: emacs-orgmode@gnu.org > Subject: Re: Multiple calc commands with orgbabel > > On Wednesday, 5 May 2021 at 09:26, pie...@caramail.com wrote: > > Does a

Re: Multiple calc commands with orgbabel

2021-05-05 Thread Eric S Fraga
On Wednesday, 5 May 2021 at 09:26, pie...@caramail.com wrote: > Does anybody has some experience using calc for factoring, matrix > computation and taking derivatives. The manual overwhelmed me. You might be better off asking on the Emacs help list as this is rather off-topic for the org

Re: Multiple calc commands with orgbabel

2021-05-05 Thread pietru
cs-orgmode@gnu.org > Subject: Re: Multiple calc commands with orgbabel > > On Wednesday, 5 May 2021 at 09:12, Dr. Arne Babenhauserheide wrote: > > could you try the header :results output? > > Doesn't make any difference as Calc itself does not actually output > anything. A

Re: Multiple calc commands with orgbabel

2021-05-05 Thread Eric S Fraga
On Wednesday, 5 May 2021 at 09:12, Dr. Arne Babenhauserheide wrote: > could you try the header :results output? Doesn't make any difference as Calc itself does not actually output anything. All results are put on the stack. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.5-503-g501b2a

Re: Multiple calc commands with orgbabel

2021-05-05 Thread pietru
.@caramail.com > Cc: emacs-orgmode@gnu.org > Subject: Re: Multiple calc commands with orgbabel > > > pie...@caramail.com writes: > > > Have been trying to execute multiple calc commands, but when I evaluate the > > calc > > expressions, I get just one result. &

Re: Multiple calc commands with orgbabel

2021-05-05 Thread Dr. Arne Babenhauserheide
pie...@caramail.com writes: > Have been trying to execute multiple calc commands, but when I evaluate the > calc > expressions, I get just one result. could you try the header :results output? Best wishes, Arne -- Unpolitisch sein heißt politisch sein ohne es zu merken signature.asc

Re: Multiple calc commands with orgbabel

2021-05-05 Thread pietru
> Sent: Wednesday, May 05, 2021 at 6:41 PM > From: "Eric S Fraga" > To: pie...@caramail.com > Cc: "help Emacs Orgmode" > Subject: Re: Multiple calc commands with orgbabel > > On Wednesday, 5 May 2021 at 08:40, pie...@caramail.com wrote: > >>

Re: Multiple calc commands with orgbabel

2021-05-05 Thread Eric S Fraga
On Wednesday, 5 May 2021 at 08:40, pie...@caramail.com wrote: >> ob-calc returns the top element of the stack when finished and this will >> be the result of the last operation in the src block. I don't think >> there's any way around this. > > Is the top stack element just with ob-calc? I am

Re: Multiple calc commands with orgbabel

2021-05-05 Thread pietru
> Sent: Wednesday, May 05, 2021 at 6:33 PM > From: "Eric S Fraga" > To: pie...@caramail.com > Cc: "help Emacs Orgmode" > Subject: Re: Multiple calc commands with orgbabel > > On Wednesday, 5 May 2021 at 07:46, pie...@caramail.com wrote: > > Hav

Re: Multiple calc commands with orgbabel

2021-05-05 Thread Eric S Fraga
On Wednesday, 5 May 2021 at 07:46, pie...@caramail.com wrote: > Have been trying to execute multiple calc commands, but when I > evaluate the calc expressions, I get just one result. ob-calc returns the top element of the stack when finished and this will be the result of the last operation in

Multiple calc commands with orgbabel

2021-05-04 Thread pietru
Have been trying to execute multiple calc commands, but when I evaluate the calc expressions, I get just one result. This does not work #+begin_src calc fsolve(x*2+x=4,x) fsolve([x + y = a, x - y = b],[x,y]) #+end_src But this works #+begin_src calc fsolve(x*2+x=4,x)