CoCoA:Ring

From ApCoCoAWiki

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>