[Maxima] proposal about vectors
Viktor T. Toth
vttoth at vttoth.com
Wed Nov 19 06:24:29 CST 2008
Interesting. I think that the listarith:false behavior is simply wrong, and
I think I know why it happens... trouble is, it may be harder to fix than
the original issue, that is, extending listarith to do its stuff for
Haven't looked at the code yet, but it seems pretty clear to me what
happens: when we suppress list-specific evaluation with listarith:false, the
general simplifier takes over. The simplifier doesn't care that [1,2] is a
list; all it knows are generic rules, such as 0*anything = 0 or
anything-anything = 0. So, we have to make sure that these generic
simplifications are suppressed for lists; or perhaps, we have to make sure
that they never get a chance, by not suppressing list-specific
simplification in cases such as 0*[1,2] even when listarith is false.
I'll have to think about this.
From: van Nek [mailto:van.nek at arcor.de]
Sent: Wednesday, November 19, 2008 2:20 AM
To: Viktor T. Toth
Cc: Maxima at math.utexas.edu
Subject: RE: [Maxima] proposal about vectors
I have noticed that with listarith:false we have the following
(%o1) [0, 0]
(%o2) [0, 0]
So if we want to use listarith:false for vectors, we must allow 0 * vector
to be the exception
from the general rule.
So if listarith=true or factor=0 then factor*[a,b] ---> [0,0].
What do you think? Perhaps on your work on listarith you step over this
More information about the Maxima