On Sat, 2004-12-04 at 17:18, Viktor T. Toth wrote:
> Some minor mysteries:
>
> 1. I think I know why this happens, but should it be happening?
>
> (%i1) trigsimp(sin(x)^2+cos(x)^2);
>
> (%o1) 1
> (%i2) kill(all);
>
> (%o0) done
> (%i1) trigsimp(sin(x)^2+cos(x)^2);
>
> 2 2
> (%o1) sin (x) + cos (x)
As others have pointed out, this is a well-known bug with kill(all). The
trigonometric simplification rules are killed by kill(all). The reason
that this bug has not been fixed is that a truly robust implementation
of kill is not as simple as it seems at first glance. The ensuing
conversation contained one link to a previous discussion of this
problem, but there have been others.
>
> 2. This is cosmetic only, but can be annoying, e.g., when creating demos:
> When a "string" (yes, I know MAXIMA doesn't really have strings, hence the
> quotes) containing a linefeed is barfed back, it becomes double spaced. Is
> this intentional?
>
> (%i2) "This is a ...
> ... two line string.";
>
> (%o2) This is a ...
>
> ... two line string.
The extra blank should not be intentional. It appears that the blank
line is inserted by the display routines; the lisp form only contains
one linefeed. I have spent some time recently trying to track down
another blank line problem (the extra blank line that comes after every
input line), but so far I have only found aggravation.
Unhelpfully,
Jim