Re: [O] Computations on properties

2013-10-10 Thread Michael Brand
Hi Thierry On Thu, Oct 10, 2013 at 8:39 AM, Thierry Pellé wrote: > After some tests : > ==> the idea of Michael >> >> * Mean Calculation >> :PROPERTIES: >> :VAL1: 5 >> :VAL2: 10 >> :COEF: 10 >> :END: >> >> Mean Calculation = call_mean() =5.

Re: [O] Computations on properties

2013-10-09 Thread Thierry Pellé
After some tests : ==> the idea of Michael > > * Mean Calculation > :PROPERTIES: > :VAL1: 5 > :VAL2: 10 > :COEF: 10 > :END: > > Mean Calculation = call_mean() =5.454545454545454= > > * code :noexport: > #+NAME: mean > #+HEADER: :var val

Re: [O] Computations on properties

2013-10-09 Thread Eric Abrahamsen
Eric Schulte writes: > Thorsten Jolitz writes: > >> Eric Abrahamsen writes: >> >>> Thierry Pellé writes: >>> Hi, I'm seeking how to do something like that Let the following text inserted in an org-mode file * Mean Calculation :PROPERTIES: :VAL1: 5 >>

Re: [O] Computations on properties

2013-10-09 Thread Michael Brand
Hi Thierry On Wed, Oct 9, 2013 at 2:19 PM, Thierry Pellé wrote: > Mean Calculation=RES (where RES is the value of the result) One more variant would be to use inline source block calls either interactively with C-c C-c or during export. An example with shell (python would be very similar) or the

Re: [O] Computations on properties

2013-10-09 Thread Eric Schulte
Thorsten Jolitz writes: > Eric Abrahamsen writes: > >> Thierry Pellé writes: >> >>> Hi, >>> I'm seeking how to do something like that >>> >>> Let the following text inserted in an org-mode file >>> >>> * Mean Calculation >>> :PROPERTIES: >>> :VAL1: 5 >>> :VAL2: 10 >>> :COEF: 10 >>> :END:

Re: [O] Computations on properties

2013-10-09 Thread Eric Abrahamsen
Thorsten Jolitz writes: > Eric Abrahamsen writes: > >> Thierry Pellé writes: >> >>> Hi, >>> I'm seeking how to do something like that >>> >>> Let the following text inserted in an org-mode file >>> >>> * Mean Calculation >>> :PROPERTIES: >>> :VAL1: 5 >>> :VAL2: 10 >>> :COEF: 10 >>> :END:

Re: [O] Computations on properties

2013-10-09 Thread Thorsten Jolitz
Eric Abrahamsen writes: > Thierry Pellé writes: > >> Hi, >> I'm seeking how to do something like that >> >> Let the following text inserted in an org-mode file >> >> * Mean Calculation >> :PROPERTIES: >> :VAL1: 5 >> :VAL2: 10 >> :COEF: 10 >> :END: >> >> I would like to append the result o

Re: [O] Computations on properties

2013-10-09 Thread Eric Abrahamsen
Thierry Pellé writes: > Hi, > I'm seeking how to do something like that > > Let the following text inserted in an org-mode file > > * Mean Calculation > :PROPERTIES: > :VAL1: 5 > :VAL2: 10 > :COEF: 10 > :END: > > I would like to append the result of a computation > like RES=(VAL1*COEF+VAL

Re: [O] Computations on properties

2013-10-09 Thread Thierry Pellé
Thank you for the reply > > PS: I don't want to use org spreadsheet > > But that would probably be the appropriate tool. I know, but I can't figure out how to extract the speadsheet computed value into the text... > Otherwise you could use > the property API in an elisp program > > ,--

Re: [O] Computations on properties

2013-10-09 Thread Thorsten Jolitz
Thierry Pellé writes: Hi, > I'm seeking how to do something like that > > Let the following text inserted in an org-mode file > > * Mean Calculation > :PROPERTIES: > :VAL1: 5 > :VAL2: 10 > :COEF: 10 > :END: > > I would like to append the result of a computation > like RES=(VAL1*COEF+VAL2)