emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add support for tables in Calc src block :var


From: Fraga, Eric
Subject: Re: [PATCH] Add support for tables in Calc src block :var
Date: Fri, 13 Dec 2024 10:53:19 +0000
User-agent: gnus (Emacs 31.0.50)

Response below/inline for email Visuwesh wrote:
> (original email sent 13 Dec 2024 at 14:32)
> 
> Update x := 3 and y first.  Then update `a' and `z'.  `z' will be 10.6.
> Now update x := 2, and update `z' and `a'.  `z' updates to 5.4 as shown
> above but `a' remains 9!  

Yes, this is expected behaviour.  Calc assumes a sequential evaluation,
especially when the same variable is given a value more than once.  It's
not like most modelling languages which look at the ensemble of
equations simultaneously.

[...]

> Which begs the question: what should be `x'?

Ideally, it would follow the Calc convention and would be the value last
given (before point, where the table is), I guess.

But, at least, for simple cases where variables are not overwritten,
what you have done would be sufficient (and a really nice addition to
the Calc package!).

I intend to use it for sure.

Thank you,
eric

-- 
: Eric S Fraga, with org 9.7.17-3ae179 in Emacs 31.0.50


reply via email to

[Prev in Thread] Current Thread [Next in Thread]