CoCoA:Delete

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Delete

delete variables from the working memory

Description

This function removes variables from the working memory. It will not

delete global variables. For more information about memory in CoCoA,

see the chapter entitled Memory Management. The command Memory() lists the contents of the working memory.

Example

  Use R ::= Q[x,y,z];
  X := Ideal(x,y);
  Y := 3;
  Use S ::= Q[a,b];
  Z := a^2+b^2;
  Memory();  -- the contents of the working memory
[<quotes>X</quotes>, <quotes>Y</quotes>, <quotes>Z</quotes>]
-------------------------------
  Delete X;
  Memory();  -- X has been deleted from the working memory
[<quotes>It</quotes>, <quotes>Y</quotes>, <quotes>Z</quotes>]
-------------------------------

Syntax

Delete V_1, ..., V_n

where each V_i is the identifier of a variable in the working
memory.

Clear

Destroy

Memory

Memory Management

   <type>ring</type>
   <type>memory</type>