Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Re: Is there a FAQ? (Clear all)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg18810] RE: [mg18766] Re: Is there a FAQ? (Clear all)
  • From: "Ersek, Ted R" <ErsekTR at navair.navy.mil>
  • Date: Thu, 22 Jul 1999 08:19:27 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Several people recommended the use of CleanSlate[] to get rid of all
previous work, and for many applications this works very well.  If you like
CleanSlate you might like my variation (CleanSlate2) defined below.  The
built-in CleanSlate prints out a few cells even if you end (CleanSlate[])
with a semi-colon. CleanSlate2 evaluates CleanSlate[] but makes no extra
cells.  If you like you can make a button with 
  ButtonFunction->Block[{Print},CleanSlate[];]

However, keep in mind that CleanSlate will only undo things you did after
loading the package.  For this reason you might like to put
  <<CleanSlate.m
in your (init.m) file.

--------------------------

Below I use (CleanSlate2) to erase work I did.  However as I demonstrate
below changes made to ($ddddd) symbols and changes to the attributes of
built in functions aren't reset to the original values!


In[1]:=
<<CleanSlate.m;
CleanSlate2:=Block[{Print},CleanSlate[];]

In[3]:=
$MinPrecision=-23;
ClearAttributes[Log,Listable];
x=345;
f[x_]:=x^2

In[7]:=
CleanSlate2

In[1]:=
x

Out[1]=
x

In[2]:=
f[a]

Out[2]=
f[a]

In[3]:=
$MinPrecision

Out[3]=
-23

In[4]:=
Attributes[Log]

Out[4]=
{NumericFunction,Protected}


Above we see CleanSlate removed definitions for (f, x) but (Log) still isn't
Listable and we still have ($MinPrecision=-23).

For a long time I wished CleanSlate would reset EVERYTHING.  Recently I
discovered the menu selection (Quit Kernel).  Using the menu selection
EVERYTHING is reset.

Regards,
Ted Ersek


  • Prev by Date: Re: How NDSolve counts Conditions
  • Next by Date: Re: InputStream in version 3 vs version 4
  • Previous by thread: Re: Is there a FAQ? (Clear all)
  • Next by thread: Re: Re: Is there a FAQ? (Clear all)