Resetting Maxima to default state?



On 2/19/07, Alasdair McAndrew <amca01 at gmail.com> wrote:

> Is there a Maxima command similar to Maple's "restart", which deletes all
> user variables, functions, arrays etc, and resets all internal variables to
> their default states?  The command "reset()" sort of does this, and combined
> with the command "kill(all)" basically does the job.

reset() + kill(all) is the closest thing to a restart.

> But not quite - I've found occasionally that I do actually need to
> quit and restart Maxima to get back to the starting state.

Maxima uses a lot of special (i.e. global) variables.
reset restores some special variables to their initial state, but not all.
Some time ago I tried to make reset better behaved, without a whole
lot of success.

If you just need to restart your personal session, probably quitting &
restarting is easiest, and certain to succeed.
If you want a "warm start" capability, take a look at this,
http://article.gmane.org/gmane.comp.mathematics.maxima.general/13448
which has some code attached to launch (via fork/exec) new sessions.

best
Robert