[Maxima] tellsimp and abs
willisb at unk.edu
Sun Jan 14 06:19:08 CST 2007
(%o2) a-1 <-- OK
(%o3) [abs(a)] <-- not OK
(%i4) expand(%,0); <-- shouldn't need to expand
I believe this (putative) bug is caused by the fact that
'simpabs' calls itself instead of calling 'simplifya.'
As a general rule, 'simplifya' is the only function
that should directly call a simplifying function. True or false?
Three more things:
(1) Since Maxima lists don't correspond to any one
particular mathematical object, I think it's wrong for 'abs' to
automatically map over a list. When listarith == true, then OK
map 'abs' over lists. Agree or disagree?
(2) The reflection simplification for abs doesn't work when the CL
special 'expandp' is 't' (look at signum1). I don't have an example
where this causes a problem. Nevertheless, we could change simpabs
to use the reflection rule scheme defined in trigi.lisp. The test
suite is OK with this change. OK or gratuitous?
(3) Do we really want abs to call cabs whenever the expression
contains an %i? Consider these 'simplifications' (yeech!)
Is x positive, negative, or zero? pos;
More information about the Maxima