[Maxima] invert_by_lu does not work as expected
rswarbrick at gmail.com
Wed Jan 11 04:04:41 CST 2012
Robert Dodier <robert.dodier at gmail.com> writes:
> OK, here is an even smaller example which triggers the bug:
> invert_by_lu (matrix ([v ]));
> The error is caused by a name collision: there is a special
> variable LB in src/grind.lisp (left bracket for arrays)
> and apparently the symbol LB in share/linearalgebra/lu.lisp
> refers to that same variable and clobbers it.
> Renaming LB in lu.lisp to FOO-LB avoids the error.
> I would have expected LB in lu.lisp to be a lexical variable; why not?
> best, Robert Dodier
Grepping shows it declared special in src/fortra.lisp. I haven't looked
further into why.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 315 bytes
Desc: not available
More information about the Maxima