CoCoA:Memory

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)

Memory

contents of local memory or ring-bound memory

Description

The first form of this function prints the contents of the working

memory, i.e, all non-global variables. The second form lists all

global variables bound to the ring R.

For more information about memory in CoCoA, see the chapter entitled

Memory Management.

Example

  Use R ::= Q[x,y,z];
  I := Ideal(x-y^2,xy-z^3);
  X := 14;
  ENV.R.Y := 5;  --  a global variable bound to R
                 -- <quotes>ENV.R</quotes> is equivalent to <quotes>MEMORY.ENV.R</quotes>
  Use S ::= Q[a,b];
  J := Ideal(a,b);
  ENV.S.Z := 7;
  Memory();
[<quotes>I</quotes>, <quotes>J</quotes>, <quotes>X</quotes>]
-------------------------------
  Memory(R);
[<quotes>Y</quotes>]
-------------------------------

Syntax

Memory():TAGGED(<quotes>Memory</quotes>)
Memory(R:RING):TAGGED(<quotes>Memory</quotes>)

GlobalMemory

Memory Management

   <type>memory</type>