Should kill(all) reset integration_constant_counter?
Subject: Should kill(all) reset integration_constant_counter?
From: Stavros Macrakis
Date: Sat, 15 Sep 2012 19:21:17 -0400
Documentation says:
`kill (all)' unbinds all items on all infolists. `kill (all)' does
not reset global variables to their default values; see `reset'
on this point.
Function: reset ()
Resets many global variables and options, and some other
variables, to their default values.
So you may want to do (kill(all),reset()) -- which does reset the
integration constant counter among other things. It is annoying that the
syntax of reset isn't consistent with that of kill (reset(all) doesn't do
what you might expect).
-s
On Sat, Sep 15, 2012 at 2:24 AM, David Billinghurst <dbmaxima at gmail.com>wrote:
> Should kill(all) reset the variable integration_constant_counter?
>
> It doesn't, and this was a surprise.
>
> Maxima 5.28.0_27_gccdcbaf http://maxima.sourceforge.net
> using Lisp CLISP 2.48 (2009-07-28)
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
> (%i1) integrate (1=1,x);
> (%o1) x = x + %c1
> (%i2) integrate (1=1,x);
> (%o2) x = x + %c2
> (%i3) integrate (1=1,x);
> (%o3) x = x + %c3
> (%i4) integration_constant_counter;
> (%o4) 3
> (%i5) kill(all);
> (%o0) done
> (%i1) integration_constant_counter;
> (%o1) 3
> (%i2) integrate (1=1,x);
> (%o2) x = x + %c4
> (%i3) build_info();
> (%o3)
> Maxima version: "5.28.0_27_gccdcbaf"
> Maxima build date: "2012-08-26 01:46:22"
> Host type: "i686-pc-cygwin"
> Lisp implementation type: "CLISP"
> Lisp implementation version: "2.48 (2009-07-28) (built 3469752760) (memory
> 3554898387)"
> ______________________________**_________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/**mailman/listinfo/maxima<http://www.math.utexas.edu/mailman/listinfo/maxima>
>