Macaulay2 » Documentation
Packages » Macaulay2Doc :: String _ Ring
next | previous | forward | backward | up | index | toc

String _ Ring -- get a ring variable by name

Synopsis

Description

i1 : R = ZZ[x,y,z];
i2 : use R;
i3 : S = ZZ[x,t];
i4 : x

o4 = x

o4 : S
The symbol x now refers to the variable x in the ring S. There are several ways of now referring to x in the ring R.
i5 : R_0

o5 = x

o5 : R
i6 : "x"_R

o6 = x

o6 : R
i7 : use R;
i8 : x

o8 = x

o8 : R

See also

Ways to use this method: