CoCoA:Ring

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)

Ring

returns the ring with a given name

Description

This function returns the ring with identifier R.

Example

  Use R ::= Q[x,y,z];
  S ::= Z/(3)[a,b];
  Ring(S);
Z/(3)[a,b]
-------------------------------
  Ring(R);
Q[x,y,z]
-------------------------------
  R;  -- same as above, as long as there is no variable with identifier
      -- R in the working memory
Q[x,y,z]
-------------------------------
  CurrentRing();
Q[x,y,z]
-------------------------------
  R := 5;  -- a variable with identifier R; now there are two objects
           -- with the identifier R: a variable and a ring
  R;
5
-------------------------------
  Memory();  -- the variables of the working memory
[<quotes>It</quotes>, <quotes>R</quotes>]
-------------------------------
  RingEnvs();  -- the list of rings
[<quotes>Q</quotes>, <quotes>Qt</quotes>, <quotes>R</quotes>, <quotes>S</quotes>, <quotes>Z</quotes>]
-------------------------------
  Ring(R);  -- the ring with identifier R
Q[x,y,z]
-------------------------------

Syntax

Ring(R:RING):RING

CurrentRing

Introduction to Rings

RingEnv

RingEnvs

   <type>ring</type>