Michael Brand <michael.ch.br...@gmail.com> wrote: > On Tue, Aug 23, 2011 at 20:29, Carsten Dominik > <carsten.domi...@gmail.com> wrote: > > I have checked, underscore is aceptable, calc allows it in variables names. > > However, I would not recommend adding any more characters to this regexp. > > Just to mention: Although "_" is the subscript operator that takes the > nth vector element in Calc, I don't mind the change since the formula > below that uses "$vector_1" did also not work before the change > probably because some other regexp to parse the field name already > included "_". And the alternative formula with "subscr($vector, 1)" > seems to be syntactically more robust/flexible/clear/etc. anyway. > > | | [x y] | x | x | #ERROR | x | > | ^ | vector | | | | | > #+TBLFM: @<$3 = $2_1 :: @<$4 = subscr($2, 1) :: @<$5 = $vector_1 :: > @<$6 = subscr($vector, 1) >
That's worth recording somewhere in Worg, methinks. Nick