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