Re: Quit versus Clear["Global`*"]
- To: mathgroup at smc.vnet.net
- Subject: [mg121216] Re: Quit versus Clear["Global`*"]
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Sun, 4 Sep 2011 18:05:26 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201109031205.IAA05310@smc.vnet.net> <j3u7r6$a88$1@smc.vnet.net> <201109040812.EAA14914@smc.vnet.net>
- Reply-to: murray at math.umass.edu
Try the following little three-part experiment. In each part, the last
step tells you what Mathematica now knows about the symbol f.
f[x_] := Plot[x, {x, 0, 1}]
SetAttributes[f, Listable]
Clear[f]
??f
f[x_] := Plot[x, {x, 0, 1}]
SetAttributes[f, Listable]
ClearAll[f]
??f
f[x_] := Plot[x, {x, 0, 1}]
SetAttributes[f, Listable]
Remove[f]
??f
On 9/4/11 4:12 AM, AES wrote:
> In article<j3u7r6$a88$1 at smc.vnet.net>,
> Murray Eisenberg<murray at math.umass.edu> wrote:
>
>> First, Clear, whether for a single object or an entire list of objects,
>> does not remove their Attributes, e.g., just their values. You might
>> want ClearAll instead.
>
> And how do either of those differ from Remove?
>
--
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
- References:
- Quit versus Clear["Global`*"]
- From: Themis Matsoukas <tmatsoukas@me.com>
- Re: Quit versus Clear["Global`*"]
- From: AES <siegman@stanford.edu>
- Quit versus Clear["Global`*"]