MathGroup Archive 2009

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

Search the Archive

Re: Re: ClearAll ?? or what

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102824] Re: [mg102777] Re: ClearAll ?? or what
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Fri, 28 Aug 2009 00:46:29 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <h7371j$b28$1@smc.vnet.net> <200908271032.GAA25743@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

Or, a bit more simply:

      Quiet[Remove["Global`*"]]

Armand Tamzarian wrote:
> On Aug 26, 6:41 am, "noslowski" <noslow... at comcast.net> wrote:
>> Is there a command that will remove all variables, custom functions,
>> equations and so on?  
>> I have tried every one that I can find including ClearAll [ " Global ' * "
>> ], and so on.
>>
>> When I bring up the text book that I writing, I always end up with problems
>> because I forgot to clear something out.  My book is interactive.   It would
>> be nice to have a command that would clear everything out when I bring up my
>> book each time.  There use to be a command in Fortran that did this, but I
>> cannot find one in Mathematica.  
>>
>> I do have Dynamic Evaluation tuned off.
>>
>> Prof. Jake
> 
> Remove["Global'*"]
> 
> or
> 
> If[Length[Names["Global`*"]] > 0, Remove["Global`*"]];
> 
> so as to avoid the message of no Global symbols exist.
> 
> 
> Mike
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: work only with Performance->Speed
  • Next by Date: Re: ClearAll ?? or what
  • Previous by thread: Re: ClearAll ?? or what
  • Next by thread: Re: ClearAll ?? or what